[CI] CEML-709: Pin GitHub Actions to immutable commit SHAs#296
Open
shay79il wants to merge 1 commit into
Open
Conversation
Mutable version tags (e.g. @v4) can be force-pushed to point to a different commit, opening a supply-chain attack vector. Replace all four unpinned action references with the commit SHA each tag currently resolves to, preserving the tag as a trailing comment for readability. Resolves CEML-709 Co-authored-by: Cursor <cursoragent@cursor.com>
GiladShapira94
approved these changes
May 13, 2026
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.
Pull Request: [CI] CEML-709: Pin GitHub Actions to immutable commit SHAs
Summary
GitHub code scanning alert #17 flagged that four GitHub Actions steps used mutable version tags (
@v4,@v7,@v2). Because tags are Git refs that can be force-pushed, they are not immutable — a compromised upstream repo could silently swap the code that runs in CI. This PR pins every affecteduses:line to the exact commit SHA the tag currently resolves to, while preserving the tag as a trailing comment for human readability.What Changed
uses:references across three workflow files to their current commit SHAsazure/setup-helm@<sha> #v4.3.1)release.ymlactions/checkout@v4@34e114876b0b11c390a56381ad16ebd13914f8d5 #v4release.ymlorhun/git-cliff-action@v4@f50e11560dce63f7c33227798f90b924471a88b5 #v4pr-validation.ymlactions/github-script@v7@f28e40c7f34bde8b3046d885e986cb6290c5673b #v7demos_notebook_tests.ymlactions/checkout@v2@ee0669bd1cc54295c223e0bb666b733df41de1c5 #v2Actions already pinned to SHAs (unchanged):
azure/setup-helm,helm/chart-releaser-action,appleboy/ssh-action.Key Points
Files Changed
.github/workflows/: security hardening of CI action referencesTesting
No logic was changed. Workflows will execute identically — the SHA-pinned actions resolve to the same code as the tags they replace.
Closes CEML-709
Commit History (for reference)
This PR includes 1 commit:
ff2f7cdCEML-709: Pin GitHub Actions to immutable commit SHAs