Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔒 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
ci.ymlactions/checkoutv5v6.0.2de0fac2e4500…ci.ymlactions/setup-nodev4v449933ea5288c…publish.ymlactions/checkoutv5v6.0.2de0fac2e4500…publish.ymlactions/setup-nodev4v449933ea5288c…publish.ymldocker/setup-buildx-actionv3v38d2750c68a42…publish.ymldocker/login-actionv3v3c94ce9fb4685…publish.ymldocker/build-push-actionv6v610e90e3645ea…publish.ymldocker/build-push-actionv6v610e90e3645ea…publish.ymlactions/create-releasev1v10cb9c9b65d5d…publish.ymlactions/setup-nodev4v449933ea5288c…Closes huggingface/tracking-issues#54
Note
Low Risk
Low risk: workflow-only changes that just pin existing actions to specific SHAs (and bumps
actions/checkout), without altering build/test/publish commands or application code.Overview
Pins GitHub Actions in
ci.ymlandpublish.ymlto immutable commit SHAs (including updatingactions/checkoutfromv5tov6.0.2) for stronger supply-chain security.Also pins the Docker actions used during publishing (
setup-buildx,login, andbuild-push), and updates commented action references to SHAs for consistency.Written by Cursor Bugbot for commit d5f006a. This will update automatically on new commits. Configure here.