Skip to content

🔒 Pin GitHub Actions to commit SHAs#1201

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

🔒 Pin GitHub Actions to commit SHAs#1201
paulinebm merged 7 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
slow_tests.yaml actions/checkout v4 v6.0.2 de0fac2e4500…
slow_tests.yaml astral-sh/setup-uv v5 v5 d4b2f3b6ecc6…
slow_tests.yaml actions/cache v4 v4 0057852bfaa8…
quality.yaml actions/checkout v2 v6.0.2 de0fac2e4500…
quality.yaml actions/setup-python v2 v2 e9aba2c848f5…
doc-build.yml huggingface/doc-builder/.github/workflows/build_main_documentation.yml main main 90b4ee2c10b8…
doc-pr-build.yml huggingface/doc-builder/.github/workflows/build_pr_documentation.yml main main 90b4ee2c10b8…
doc-pr-upload.yml huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml main main 90b4ee2c10b8…
pr_style_bot.yaml huggingface/huggingface_hub/.github/workflows/style-bot-action.yml main main e000c1c89c65…
trufflehog.yml actions/checkout v4 v6.0.2 de0fac2e4500…
trufflehog.yml trufflesecurity/trufflehog main main 6bd2d14f7a4b…

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

Closes huggingface/tracking-issues#162

@bot-ci-comment
Copy link
Copy Markdown

bot-ci-comment bot commented Apr 2, 2026

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@paulinebm paulinebm marked this pull request as ready for review April 2, 2026 12:21
@paulinebm paulinebm merged commit e274b37 into main Apr 7, 2026
5 checks 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.

1 participant