Skip to content

🔒 Pin GitHub Actions to commit SHAs#3992

Open
paulinebm wants to merge 8 commits intomainfrom
security/pin-actions-to-sha
Open

🔒 Pin GitHub Actions to commit SHAs#3992
paulinebm wants to merge 8 commits intomainfrom
security/pin-actions-to-sha

Conversation

@paulinebm
Copy link
Copy Markdown

🔒 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
gaudi3_scheduled.yml actions/checkout v6 v6.0.2 de0fac2e4500…
integration_tests.yml actions/checkout v6 v6.0.2 de0fac2e4500…
integration_tests.yml actions/setup-python v6 v6 a309ff8b426b…
build-docker-images-release.yml actions/checkout v6 v6.0.2 de0fac2e4500…
build-docker-images-release.yml docker/setup-buildx-action v3 v3 8d2750c68a42…
build-docker-images-release.yml docker/login-action v3 v3 c94ce9fb4685…
build-docker-images-release.yml docker/build-push-action v6 v6 10e90e3645ea…
build-docker-images-release.yml docker/setup-buildx-action v3 v3 8d2750c68a42…
build-docker-images-release.yml docker/login-action v3 v3 c94ce9fb4685…
build-docker-images-release.yml docker/build-push-action v6 v6 10e90e3645ea…
build-docker-images-release.yml docker/setup-buildx-action v3 v3 8d2750c68a42…
build-docker-images-release.yml docker/login-action v3 v3 c94ce9fb4685…
build-docker-images-release.yml docker/build-push-action v6 v6 10e90e3645ea…
build-docker-images-release.yml docker/setup-buildx-action v3 v3 8d2750c68a42…
build-docker-images-release.yml docker/login-action v3 v3 c94ce9fb4685…
build-docker-images-release.yml docker/build-push-action v6 v6 10e90e3645ea…
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…
upload_pr_documentation.yml huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml main main 90b4ee2c10b8…
pr_style_bot.yml huggingface/huggingface_hub/.github/workflows/style-bot-action.yml main main e000c1c89c65…
trufflehog.yml actions/checkout v6 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#59

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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:23
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