Skip to content

Pin GitHub Actions to full commit SHAs#67

Open
MariusVolkhart wants to merge 1 commit into
mainfrom
pin-actions
Open

Pin GitHub Actions to full commit SHAs#67
MariusVolkhart wants to merge 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.
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