Skip to content

Pin GitHub Actions to full commit SHAs#13

Merged
MariusVolkhart merged 1 commit into
masterfrom
pin-actions
May 13, 2026
Merged

Pin GitHub Actions to full commit SHAs#13
MariusVolkhart merged 1 commit into
masterfrom
pin-actions

Conversation

@MariusVolkhart
Copy link
Copy Markdown
Member

@MariusVolkhart MariusVolkhart commented Apr 30, 2026

Summary

Pins all GitHub Actions to full commit SHAs instead of floating version tags.

Why: A mutable tag (e.g. `@v4`) can be force-pushed to point to different — potentially malicious — code. A full SHA is immutable and cannot be redirected.

Each pinned action retains its version tag as a comment for readability:
```yaml
uses: actions/checkout@11bd719 # v4
```

Test plan

  • Verify CI passes with pinned actions
  • Confirm pinned SHAs match expected version tags

Replace floating version tags with pinned commit SHAs to prevent
supply chain attacks. Each action retains its version tag as a
comment for readability.
@MariusVolkhart MariusVolkhart merged commit 807ac42 into master May 13, 2026
2 checks passed
@MariusVolkhart MariusVolkhart deleted the pin-actions branch May 13, 2026 11:59
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