Skip to content

Verify release attestation in the Action and scope Pages permissions to the deploy job #157

Closed

Description

@TMHSDigital

Summary

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
  • Pages build job runs with contents: read only

Getting started

  • Relevant files: action.yml, .github/workflows/pages.yml
  • How to run tests: the action matrix job in .github/workflows/go.yml exercises the composite action
  • Related docs: docs/monitoring.md

Filed by repo-audit/full-audit at 3139c44. Severity: low. Effort: S. audit-key: security|action.yml|release-verification

Activity

  1. added
    enhancement
    good first issue
    ci
    severity: low
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cienhancementgood first issueseverity: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions