Action attestation check is not pinned to the release workflow

Abierto Apto para principiantes
#206 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
77/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github, go
Área
security

Línea de trabajo

Lee la llamada de verificación de la atestación en action.yml:168-172 y luego compara el comando documentado en docs/ci.md:222 con el comando de publicación en .goreleaser.yaml:83-88. Actualiza el comando de verificación y la redacción relacionada según se describe en los criterios de aceptación; después, ejecuta las pruebas breves y el linter indicados. El trabajo estará terminado cuando el flujo de trabajo del firmante tenga un nombre coherente y el comentario describa correctamente la verificación de las sumas de comprobación.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

ci good first issue severity: low

Summary

The Action verifies the downloaded archive with gh attestation verify --repo, which accepts an attestation from any workflow of the repository. The comment and docs/ci.md say it checks provenance from the release workflow. The cosign command in the release notes does pin the workflow and tag.

Where

  • action.yml:168-172
  • docs/ci.md:222
  • .goreleaser.yaml:83-88 (cosign command with --certificate-identity-regexp for release.yml at a tag)

Details

With only --repo, the GitHub CLI checks the source repository and that the signing identity is some workflow under it; it does not require a particular workflow or ref (per the CLI documentation; not run against a counter-example). The comment "Verify the archive against the signed checksum list" also overstates the previous step: checksums.txt is used as downloaded and its signature bundle is not verified there, so the attestation is the single authenticity check.

Impact

Defense in depth: the property the docs promise (only the tag-triggered release workflow can produce an archive the action will run) is weaker than stated. Using the gap needs write access to the repository, so this is hardening, not a remote problem.

Suggested fix

Add --signer-workflow TMHSDigital/Spackle/.github/workflows/release.yml to the gh attestation verify call in action.yml and to the commands in docs/ci.md and the release footer, and, where the installed gh supports it, --source-ref "refs/tags/<tag>". Reword the comment to "against the checksum list of the release".

Acceptance criteria

  • The verify call names the signer workflow
  • docs/ci.md and the release footer show the same command
  • The comment describes what the checksum step does

Getting started

  • Relevant files: action.yml, docs/ci.md, .goreleaser.yaml
  • How to run tests: make test-short (Unix) or .\make.ps1 test-short (Windows PowerShell); make lint before you call it done
  • Related docs: docs/ci.md

Filed by repo-audit/full-audit at 50e92ec. Severity: low. Effort: S. audit-key: ci|action.yml|attestation-verify

Lenguaje dominante
Go
Estrellas
0
Forks
1
Merge medio
8 h 14 min
PR fusionados (30 d)
3

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de TMHSDigital/Spackle

Todos los issues de TMHSDigital/Spackle

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.