You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Verify release attestation in the Action and scope Pages permissions to the deploy job #157
Two least-privilege and supply-chain hardening gaps in the release and Pages pipelines. Neither has a known exploit; both are cheap to close.
Where
action.yml:106-109 (release download verified only against checksums.txt)
.goreleaser.yaml:64-72, .github/workflows/go.yml:294-300 (cosign bundle and build-provenance attestation are published but never checked by the action)
.github/workflows/pages.yml:17-20 (workflow-level pages: write and id-token: write apply to the build job too)
Details
The composite action downloads the archive and checksums.txt from the same release and runs sha256sum --check. That is an integrity check against the asset set, not an authenticity check: whoever can replace release assets can replace both files. The release job already produces a cosign signature and a GitHub build-provenance attestation.
The Pages workflow grants deploy rights at workflow level, so the Jekyll build job (which runs a Python script over repo content) holds OIDC and Pages write permissions it does not need.
Impact
Defence in depth for downstream users of the action and for the docs site. Low likelihood, low cost.
Suggested fix
In action.yml, after download run gh attestation verify "$archive" --repo TMHSDigital/subenum (gh is preinstalled on hosted runners) or cosign verify-blob against the published bundle, before extraction
In pages.yml, keep contents: read at workflow level and move pages: write / id-token: write to the deploy job only
Acceptance criteria
Action fails if the archive's attestation does not verify
Activity