Skip to content

🔒 Pin GitHub Actions to commit SHAs#61

Merged
paulinebm merged 5 commits into
mainfrom
security/pin-actions-to-sha
Apr 3, 2026
Merged

🔒 Pin GitHub Actions to commit SHAs#61
paulinebm merged 5 commits 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
dockerhub.yml actions/checkout v4 v6.0.2 de0fac2e4500…
dockerhub.yml docker/setup-buildx-action v1 v1 f211e3e9ded2…
code_quality.yml actions/checkout v2 v6.0.2 de0fac2e4500…
code_quality.yml actions/setup-python v2 v2 e9aba2c848f5…
build_documentation.yml huggingface/doc-builder/.github/workflows/build_main_documentation.yml use_py_310 use_py_310 2162f5311641…
build_pr_documentation.yml huggingface/doc-builder/.github/workflows/build_pr_documentation.yml use_py_310 use_py_310 2162f5311641…
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#83

@paulinebm paulinebm marked this pull request as ready for review April 2, 2026 12:23
@paulinebm paulinebm merged commit 92ec66d into main Apr 3, 2026
1 of 3 checks passed
@paulinebm paulinebm deleted the security/pin-actions-to-sha branch April 3, 2026 08:21
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