Skip to content

Pin GitHub Actions to full commit SHAs#67

Merged
MariusVolkhart merged 1 commit into
mainfrom
pin-actions
May 22, 2026
Merged

Pin GitHub Actions to full commit SHAs#67
MariusVolkhart merged 1 commit into
mainfrom
pin-actions

Conversation

@MariusVolkhart
Copy link
Copy Markdown
Member

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:

uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 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 31a3f3a into main May 22, 2026
1 of 2 checks passed
@MariusVolkhart MariusVolkhart deleted the pin-actions branch May 22, 2026 15:23
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