Skip to content

🔒 Pin GitHub Actions to commit SHAs#3697

Merged
tomaarsen merged 2 commits intomainfrom
security/pin-actions-to-sha
Apr 2, 2026
Merged

🔒 Pin GitHub Actions to commit SHAs#3697
tomaarsen merged 2 commits intomainfrom
security/pin-actions-to-sha

Conversation

@paulinebm
Copy link
Copy Markdown
Collaborator

🔒 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
quality.yml actions/checkout v6 v6.0.2 de0fac2e4500…
quality.yml actions/setup-python v6 v6 a309ff8b426b…
quality.yml astral-sh/setup-uv v6 v6 d0cc045d04cc…

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

Closes huggingface/tracking-issues#255

@paulinebm paulinebm marked this pull request as ready for review April 2, 2026 12:19
@tomaarsen tomaarsen merged commit c7c37e9 into main Apr 2, 2026
17 checks passed
@tomaarsen
Copy link
Copy Markdown
Member

@paulinebm How about the tests.yml CI, should those also be updated?

  • Tom Aarsen

@paulinebm paulinebm deleted the security/pin-actions-to-sha branch April 2, 2026 13:45
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