Skip to content

🔒 Pin GitHub Actions to commit SHAs#11

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

🔒 Pin GitHub Actions to commit SHAs#11
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 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
pre-commit.yml actions/checkout v4 v6.0.2 de0fac2e4500…
pre-commit.yml actions/setup-python v5 v5 a26af69be951…

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

Closes huggingface/tracking-issues#249

@paulinebm paulinebm marked this pull request as ready for review April 2, 2026 12:19
@paulinebm paulinebm requested a review from A-Mahla April 2, 2026 13:57
Copy link
Copy Markdown

@jagwar jagwar left a comment

Choose a reason for hiding this comment

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

LGTM

@paulinebm paulinebm merged commit 43cc9e2 into main Apr 2, 2026
1 check passed
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