Skip to content

🔒 Pin GitHub Actions to commit SHAs#666

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

🔒 Pin GitHub Actions to commit SHAs#666
sergiopaniego merged 3 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
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…

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

Closes huggingface/tracking-issues#60

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown
Collaborator

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
Copy link
Copy Markdown
Member

@sergiopaniego sergiopaniego left a comment

Choose a reason for hiding this comment

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

🔒

@sergiopaniego sergiopaniego merged commit 84540e4 into main Apr 2, 2026
1 check passed
@sergiopaniego sergiopaniego deleted the security/pin-actions-to-sha branch April 2, 2026 15: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.

3 participants