Skip to content

fix: pin GitHub Actions to SHA for supply chain security#194

Merged
apham0001 merged 2 commits into
mainfrom
fix/pin-github-actions-sha
Mar 25, 2026
Merged

fix: pin GitHub Actions to SHA for supply chain security#194
apham0001 merged 2 commits into
mainfrom
fix/pin-github-actions-sha

Conversation

@apham0001
Copy link
Copy Markdown
Contributor

@apham0001 apham0001 commented Mar 24, 2026

Summary

  • Pin all GitHub Actions uses: references to commit SHAs for supply chain security
  • Original version tags preserved as inline comments for maintainability
  • Mitigates supply chain attacks where a compromised tag could inject malicious code (ref: Trivy incident March 2026)

Changes

  • All uses: owner/action@taguses: owner/action@SHA # tag
  • No version changes, only pinning format

Test plan

  • Verify CI workflows run successfully
  • Confirm no action versions changed, only pinning format

Pin all GitHub Actions to their full commit SHA instead of mutable tags
to prevent supply chain attacks via tag manipulation.

Actions pinned:
- actions/add-to-project@v0.3.0
- actions/checkout@v2
- actions/checkout@v4
- onbjerg/foundry-toolchain@v1
- actions/github-script@v6
- crytic/slither-action@v0.4.0
- github/codeql-action/upload-sarif@v3
@apham0001 apham0001 merged commit 0695656 into main Mar 25, 2026
5 checks passed
@apham0001 apham0001 deleted the fix/pin-github-actions-sha branch March 25, 2026 09:24
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