Skip to content

🔒 Pin GitHub Actions to commit SHAs#176

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

🔒 Pin GitHub Actions to commit SHAs#176
regisss 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
secrets_scan.yaml actions/checkout v4 v6.0.2 de0fac2e4500…
secrets_scan.yaml trufflesecurity/trufflehog main main 6bd2d14f7a4b…
test_ryzenai_nightly.yaml huggingface/hf-workflows/.github/workflows/ryzenai_ci.yaml main main a88e7fa2eaee…
test_ryzenai_nightly.yaml huggingface/hf-workflows/.github/workflows/ryzenai_ci.yaml main main a88e7fa2eaee…
test_ryzenai_nightly.yaml actions/checkout v3 v6.0.2 de0fac2e4500…
test_ryzenai_nightly.yaml actions/download-artifact v3 v3 9bc31d5ccc31…
test_ryzenai_nightly.yaml actions/upload-artifact v3 v3 ff15f0306b3f…
publish_backup.yaml actions/setup-python v3 v3 3542bca2639a…
test_zentorch_plugin.yaml actions/checkout v3 v6.0.2 de0fac2e4500…
test_zentorch_plugin.yaml addnab/docker-run-action v3 v3 4f65fabd2431…
upload_pr_documentation.yml huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml main main 90b4ee2c10b8…
test_ryzenai_modeling.yaml huggingface/hf-workflows/.github/workflows/ryzenai_ci.yaml main main a88e7fa2eaee…

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

Closes huggingface/tracking-issues#224

@paulinebm paulinebm marked this pull request as ready for review April 2, 2026 12:20
Copy link
Copy Markdown
Contributor

@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.

@regisss regisss merged commit f8cfed7 into main Apr 3, 2026
1 of 3 checks passed
@regisss regisss deleted the security/pin-actions-to-sha branch April 3, 2026 08:28
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