Action attestation check is not pinned to the release workflow
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 77/100
Rechercherichtung
Lies den Aufruf zur Attestierungsprüfung in action.yml:168-172 und vergleiche dann den dokumentierten Befehl in docs/ci.md:222 mit dem Release-Befehl in .goreleaser.yaml:83-88. Aktualisiere den Prüfungsbefehl und die zugehörige Formulierung wie in den Akzeptanzkriterien beschrieben und führe dann die aufgeführten kurzen Tests und den Linter aus. Fertig ist die Arbeit, wenn der Signer-Workflow einheitlich benannt ist und der Kommentar die Prüfsummenverifizierung korrekt beschreibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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-172docs/ci.md:222.goreleaser.yaml:83-88(cosign command with--certificate-identity-regexpfor 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 lintbefore 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
- Vorherrschende Sprache
- Go
- Sterne
- 0
- Forks
- 1
- Ø Merge
- 8 Std. 14 Min.
- Gemergte PRs (30 T.)
- 3
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TMHSDigital/Spackle
-
ci severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
TMHSDigital/Spackle#205 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
TMHSDigital/Spackle#199 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 87/100
TMHSDigital/Spackle#195 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue severity: medium
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
TMHSDigital/Spackle#188 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue severity: medium
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
TMHSDigital/Spackle#187 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in TMHSDigital/Spackle
Ähnliche Issues
-
bug effort:s impact:med raised-by:worker risk:low to:worker
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
medici-finance/assay#8120 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
factory:subtask
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
agent-substrate/substrate#4308 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
celestiaorg/celestia-app#8877 ·
Maintainer antworten meist innerhalb von 1 Tag
-
sweep
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 84/100
bketelsen/truenas-mcp#112 ·
Maintainer antworten meist innerhalb von 1 Tag