Skip to content

🔒 Pin GitHub Actions to commit SHAs#631

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

🔒 Pin GitHub Actions to commit SHAs#631
tomaarsen merged 5 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
tests.yml actions/checkout v3 v6.0.2 de0fac2e4500…
tests.yml actions/setup-python v4 v4 7f4fc3e22c37…
tests.yml actions/cache v3 v3 6f8efc29b200…
tests.yml actions/cache/restore v3 v3 6f8efc29b200…
tests.yml actions/cache/save v3 v3 6f8efc29b200…
build_documentation.yml huggingface/doc-builder/.github/workflows/build_main_documentation.yml main main 90b4ee2c10b8…
build_pr_documentation.yml huggingface/doc-builder/.github/workflows/build_pr_documentation.yml main main 90b4ee2c10b8…
delete_doc_comment_trigger.yml huggingface/doc-builder/.github/workflows/delete_doc_comment_trigger.yml main main 90b4ee2c10b8…
upload_pr_documentation.yml huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml main main 90b4ee2c10b8…

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

Closes huggingface/tracking-issues#256

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