Skip to content

🔒 Pin GitHub Actions to commit SHAs#181

Merged
paulinebm merged 4 commits intomainfrom
security/pin-actions-to-sha
Apr 3, 2026
Merged

🔒 Pin GitHub Actions to commit SHAs#181
paulinebm merged 4 commits 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
release.yml actions/setup-python v4 v4 7f4fc3e22c37…
release.yml actions/checkout v4 v6.0.2 de0fac2e4500…
release.yml actions/checkout v4 v6.0.2 de0fac2e4500…
release.yml actions/checkout v4 v6.0.2 de0fac2e4500…
release.yml actions/checkout v4 v6.0.2 de0fac2e4500…
release.yml docker/login-action v3 v3 c94ce9fb4685…
release.yml docker/metadata-action v5 v5 c299e40c6544…
release.yml docker/build-push-action v6 v6 10e90e3645ea…
release.yml actions/attest-build-provenance v2 v2 e8998f949152…
pr_secrets_scan.yml actions/checkout v4 v6.0.2 de0fac2e4500…
pr_secrets_scan.yml trufflesecurity/trufflehog main main 6bd2d14f7a4b…
pr_quality.yml actions/checkout v4 v6.0.2 de0fac2e4500…
pr_quality.yml actions/setup-python v5 v5 a26af69be951…
pr_tests.yml actions/setup-python v5 v5 a26af69be951…
pr_tests.yml actions/checkout v4 v6.0.2 de0fac2e4500…
pr_tests.yml actions/setup-python v5 v5 a26af69be951…
pr_tests.yml actions/checkout v4 v6.0.2 de0fac2e4500…
pr_tests.yml huggingface/tailscale-action main main 7d53c9737e53…

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

Closes huggingface/tracking-issues#232

@paulinebm paulinebm marked this pull request as ready for review April 2, 2026 12:19
@paulinebm paulinebm merged commit 923dfd7 into main Apr 3, 2026
1 of 6 checks passed
@paulinebm paulinebm deleted the security/pin-actions-to-sha branch April 3, 2026 08:25
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