Skip to content

Pin GitHub Actions to full commit SHAs#209

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

Pin GitHub Actions to full commit SHAs#209
MariusVolkhart merged 1 commit into
mainfrom
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:

uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

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 27d3263 into main May 22, 2026
1 of 2 checks passed
@MariusVolkhart MariusVolkhart deleted the pin-actions branch May 22, 2026 15:21
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