Skip to content

Pin release workflow actions to immutable SHAs - #369

Open
alwell-kevin wants to merge 1 commit into
Mastercard:mainfrom
alwell-kevin:codex/pin-release-actions
Open

alwell-kevin wants to merge 1 commit into
Mastercard:mainfrom
alwell-kevin:codex/pin-release-actions

Conversation

@alwell-kevin

Copy link
Copy Markdown

Summary

  • pins release/signing workflow actions to immutable commit SHAs
  • replaces the mutable GoReleaser latest binary selector with v2.16.0
  • keeps version comments beside each SHA for maintainability

Fixes #368.

Security rationale

The release workflows expose GPG signing material and release publishing context. Mutable action refs can be retargeted upstream and are resolved by GitHub Actions at workflow runtime. Pinning to full commit SHAs prevents tag retargeting from changing the code executed by these privileged jobs.

Validation

  • Parsed .github/workflows/release.yaml and .github/workflows/gpginfo.yaml with Ruby YAML parser
  • Ran git diff --check

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.

Pin release workflow dependencies to immutable commit SHAs

1 participant