Skip to content

fix(ci): pin release actions to SHAs and scope token permissions - #777

Merged
johnstonmatt merged 1 commit into
mainfrom
FUNC/gh-workflows-with-digests
Nov 24, 2026
Merged

johnstonmatt merged 1 commit into
mainfrom
FUNC/gh-workflows-with-digests

Conversation

@johnstonmatt

Copy link
Copy Markdown
Contributor

Hardens the release workflows by pinning actions to commit SHAs and narrowing GITHUB_TOKEN permissions. Native release tarballs now also ship with checksums and a build provenance attestation.

  • Pin every action in release-native.yml and github-script in release.yml to full commit SHAs.
  • Default both release workflows to contents: read, granting write scopes (contents: write, actions: write) only to the jobs that create releases or dispatch workflows, and set persist-credentials: false on checkout in build jobs.
  • Add an attest job to release-native.yml that generates SHA256SUMS with plain sha256sum and attests build provenance for the native tarballs. The release job now depends on it.
  • Remove the target-branch: 'master' override from dependabot's github-actions updates so they target the default branch.
  • Document how to verify native release assets (checksums and gh attestation verify) in the README.

- Pin every action in release-native.yml and github-script in release.yml
  to full commit SHAs.
- Default both release workflows to contents: read and grant write scopes
  only to the jobs that create releases or dispatch workflows; stop
  persisting checkout credentials in build jobs.
- Publish SHA256SUMS and a build provenance attestation for native
  release tarballs, generated in a job without third-party actions.
- Point dependabot's github-actions updates at the default branch.
- Document how to verify native release assets.
@johnstonmatt
johnstonmatt requested a review from a team November 24, 2026 07:00
@johnstonmatt
johnstonmatt merged commit dc5a50c into main Nov 24, 2026
1 check passed
@johnstonmatt
johnstonmatt deleted the FUNC/gh-workflows-with-digests branch November 24, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants