Skip to content

馃敀 Pin GitHub Actions to commit SHAs - #15028

Merged
paulinebm merged 1 commit into
mainfrom
security/pin-actions-to-sha
Oct 14, 2026
Merged

paulinebm merged 1 commit into
mainfrom
security/pin-actions-to-sha

Conversation

@paulinebm

Copy link
Copy Markdown
Contributor

馃敀 Pin GitHub Actions to commit SHAs

This PR pins every GitHub Action and reusable workflow referenced in .github/workflows/ to a full commit SHA instead of a mutable tag or branch, with the version kept as a trailing comment (# vX.Y.Z).

Why? A tag or branch (e.g. v4, main) can be moved to point to different code; pinning to a SHA protects CI against supply-chain attacks such as tag hijacking.

actions/checkout references older than v7 are bumped to v6.0.2 as part of this campaign.

Changes (1 file(s), 1 reference(s))

Action Before After SHA Files
huggingface/tailscale-action main main 9d1a67c46875 ssh-runner.yml

Closes huggingface/tracking-issues#1232

馃 Generated with Claude Code

Replace mutable tags and branch refs in workflow files with full commit SHAs,
keeping the original version as a trailing comment.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added CI size/S PR with diff < 50 LOC labels Oct 14, 2026
@paulinebm
paulinebm merged commit 40f6369 into main Oct 14, 2026
10 of 13 checks passed
@paulinebm
paulinebm deleted the security/pin-actions-to-sha branch October 14, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI size/S PR with diff < 50 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant