Skip to content

Pin GitHub Actions to SHA hashes#197

Merged
bradymholt merged 1 commit into
mainfrom
pin-github-actions-to-sha
Apr 1, 2026
Merged

Pin GitHub Actions to SHA hashes#197
bradymholt merged 1 commit into
mainfrom
pin-github-actions-to-sha

Conversation

@bradymholt

Copy link
Copy Markdown
Member

Summary

  • Pins all third-party GitHub Actions to full commit SHAs instead of
    mutable version tags (e.g., actions/checkout@v4
    actions/checkout@34e114876b0b... # v4)
  • Original version tags are preserved as comments for readability
  • This is a security best practice recommended by GitHub to prevent
    supply chain attacks where a tag could be moved to point to
    malicious code

Test plan

  • Verify CI workflows still pass with pinned SHAs

Replace mutable version tags with full commit SHAs in all workflow
files. Original tags preserved as inline comments for reference.
@socket-security

Copy link
Copy Markdown

@bradymholt bradymholt requested review from a team and Mira-M and removed request for a team April 1, 2026 19:52
@bradymholt bradymholt enabled auto-merge April 1, 2026 19:52
@bradymholt bradymholt merged commit 9805e60 into main Apr 1, 2026
5 checks passed
@bradymholt bradymholt deleted the pin-github-actions-to-sha branch April 1, 2026 20:17
@github-actions

Copy link
Copy Markdown

The changes in this PR were just released in v4.1.0 🎉.

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