Skip to content

🔒 Pin GitHub Actions to commit SHAs#374

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

🔒 Pin GitHub Actions to commit SHAs#374
paulinebm merged 6 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
build-push-unity.yml actions/checkout v2 v6.0.2 de0fac2e4500…
build-push-unity.yml actions/cache v2 v2 8492260343ad…
build-push-unity.yml game-ci/unity-builder v2 v2 9f79830454d3…
build-push-unity.yml actions/upload-artifact v2 v2 82c141cc518b…
build-push-unity.yml actions/checkout v2 v6.0.2 de0fac2e4500…
build-push-unity.yml actions/upload-artifact v2 v2 82c141cc518b…
build-push-unity.yml actions/setup-python v4 v4 7f4fc3e22c37…
build-push-unity.yml actions/download-artifact v3 v3 9bc31d5ccc31…
tests-no-deps.yml actions/checkout v3 v6.0.2 de0fac2e4500…
tests-no-deps.yml actions/setup-python v4 v4 7f4fc3e22c37…
tests-no-deps.yml actions/cache v3 v3 6f8efc29b200…
wheels.yml actions/checkout v3 v6.0.2 de0fac2e4500…
wheels.yml actions/upload-artifact v3 v3 ff15f0306b3f…
wheels.yml actions/checkout v3 v6.0.2 de0fac2e4500…
wheels.yml actions/upload-artifact v3 v3 ff15f0306b3f…
wheels.yml actions/setup-python v4 v4 7f4fc3e22c37…
wheels.yml actions/download-artifact v3 v3 9bc31d5ccc31…
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.yml huggingface/doc-builder/.github/workflows/delete_doc_comment.yml main main 90b4ee2c10b8…

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

Closes huggingface/tracking-issues#257

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