Skip to content

🔒 Pin GitHub Actions to commit SHAs#52

Merged
paulinebm merged 1 commit intomainfrom
security/pin-actions-to-sha
Apr 2, 2026
Merged

🔒 Pin GitHub Actions to commit SHAs#52
paulinebm merged 1 commit intomainfrom
security/pin-actions-to-sha

Conversation

@paulinebm
Copy link
Copy Markdown
Contributor

🔒 Pin GitHub Actions to commit SHAs

This PR pins all GitHub Actions to their exact commit SHA instead of mutable tags or branch names.

Why?
Pinning to a SHA prevents supply chain attacks where a tag (e.g. v4) could be moved to point to malicious code.

Changes

Workflow Action Avant Après SHA
build.yaml actions/checkout v4 v6.0.2 de0fac2e4500…
build.yaml docker/setup-buildx-action v3 v3 8d2750c68a42…
build.yaml rlespinasse/github-slug-action v4 v4 797d68864753…
build.yaml mozilla-actions/sccache-action v0.0.9 v0.0.9 7d986dd98955…
build.yaml docker/login-action v3 v3 c94ce9fb4685…
build.yaml docker/metadata-action v5 v5 c299e40c6544…
build.yaml docker/build-push-action v6 v6 10e90e3645ea…

🤖 Generated by /github-actions-audit — [security/pin-actions-to-sha]

Closes huggingface/tracking-issues#174

@paulinebm paulinebm marked this pull request as ready for review April 2, 2026 12:21
@paulinebm paulinebm merged commit 4822a2a into main Apr 2, 2026
2 checks passed
@paulinebm paulinebm deleted the security/pin-actions-to-sha branch April 2, 2026 14:03
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.

1 participant