Skip to content

πŸ”’ Pin GitHub Actions to commit SHAs#336

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

πŸ”’ Pin GitHub Actions to commit SHAs#336
regisss 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
images.yaml jlumbroso/free-disk-space main main 54081f138730…
images.yaml actions/checkout v4 v6.0.2 de0fac2e4500…
images.yaml docker/setup-buildx-action v3 v3 8d2750c68a42…
images.yaml docker/login-action v3 v3 c94ce9fb4685…
images.yaml docker/metadata-action v5 v5 c299e40c6544…
images.yaml docker/build-push-action v5 v5 ca052bb54ab0…
quality.yaml actions/checkout v4 v6.0.2 de0fac2e4500…
quality.yaml astral-sh/setup-uv v6 v6 d0cc045d04cc…
test_api_rocm.yaml huggingface/hf-workflows/.github/workflows/optimum_benchmark_instinct_ci.yaml testing testing 4c2159877665…
security.yml actions/checkout v4 v6.0.2 de0fac2e4500…
security.yml trufflesecurity/trufflehog main main 6bd2d14f7a4b…

πŸ€– Generated by /github-actions-audit β€” [security/pin-actions-to-sha]

Closes huggingface/tracking-issues#225

@paulinebm paulinebm marked this pull request as ready for review April 2, 2026 12:20
Copy link
Copy Markdown
Collaborator

@regisss regisss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@regisss regisss merged commit 702a15e into main Apr 3, 2026
22 checks passed
@regisss regisss deleted the security/pin-actions-to-sha branch April 3, 2026 08:27
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