Action attestation check is not pinned to the release workflow

Aperta Adatta ai principianti
#206 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
77/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github, go
Ambito
security

Direzione di ricerca

Leggi la chiamata di verifica dell’attestazione in action.yml:168-172, poi confronta il comando documentato in docs/ci.md:222 con il comando di rilascio in .goreleaser.yaml:83-88. Aggiorna il comando di verifica e la formulazione correlata come descritto nei criteri di accettazione, quindi esegui i test brevi e il lint indicati. Il lavoro è completato quando il workflow del firmatario ha un nome coerente e il commento descrive correttamente la verifica dei checksum.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Go
Stelle
0
Fork
1
Merge medio
8h 14m
PR unite (30g)
3

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TMHSDigital/Spackle

Tutte le issue di TMHSDigital/Spackle

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.