Skip to content

Pin GitHub Actions to commit SHAs#145

Merged
zrzka merged 1 commit into
masterfrom
neon/github-actions-audit-remediation-2026-06-15
Jun 15, 2026
Merged

Pin GitHub Actions to commit SHAs#145
zrzka merged 1 commit into
masterfrom
neon/github-actions-audit-remediation-2026-06-15

Conversation

@neonspectra

Copy link
Copy Markdown
Contributor

Summary

Pins GitHub Actions uses: references to verified full-length commit SHAs.

This prepares the repository for orgwide enforcement that blocks unpinned GitHub Actions and reduces supply-chain risk from mutable tags or branches.

Details

  • Replaced mutable external action refs such as owner/action@vN with full 40-character commit SHAs.
  • Preserved the originally intended tag/version as an inline comment next to each pin.
  • Resolved SHAs from the official upstream action repositories using git ls-remote.
  • For annotated tags, pinned the peeled commit SHA (refs/tags/<tag>^{}), not the tag object SHA.
  • No workflow behavior, inputs, permissions, or triggers were intentionally changed.

Pin external GitHub Actions used by workflows to verified full-length commit SHAs while preserving the referenced release tags in comments.

Co-authored-by: neon <neon@neosynth.net>
@neonspectra neonspectra requested review from a team, eteubert and zrzka June 15, 2026 11:29
@zrzka zrzka merged commit d46ca11 into master Jun 15, 2026
2 checks passed
@zrzka zrzka deleted the neon/github-actions-audit-remediation-2026-06-15 branch June 15, 2026 11:47
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.

3 participants