Skip to content

🔒 Pin GitHub Actions to commit SHAs#2376

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

🔒 Pin GitHub Actions to commit SHAs#2376
regisss 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
fast_tests.yml actions/checkout v6 v6.0.2 de0fac2e4500…
fast_tests.yml actions/checkout v6 v6.0.2 de0fac2e4500…
build_documentation.yml actions/checkout v6 v6.0.2 de0fac2e4500…
build_documentation.yml actions/setup-node v6 v6 53b83947a5a9…
build_documentation.yml actions/setup-python v6 v6 a309ff8b426b…
failed_code_quality_check_comment.yml dawidd6/action-download-artifact v6 v6 bf251b5aa9c2…
upload_pr_documentation.yml huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml main main 90b4ee2c10b8…
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#229

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

The code quality check failed, please run make style.

@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:19
@paulinebm paulinebm requested a review from regisss as a code owner April 2, 2026 12:19
Copy link
Copy Markdown
Collaborator

@regisss regisss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@regisss regisss merged commit 80c4ff6 into main Apr 2, 2026
5 of 8 checks passed
@regisss regisss deleted the security/pin-actions-to-sha branch April 2, 2026 17:33
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.

3 participants