ci: AUT-784 pin GitHub Actions to commit SHAs#560
Open
svcnemo-autobot wants to merge 1 commit into
Open
Conversation
Replace all mutable action/reusable-workflow tag references in the workflows with the immutable commit SHA they currently resolve to, keeping the original version as a trailing comment for readability and future bumps. This hardens the CI supply chain against tag-mutation attacks (per GitHub's hardening guidance). Covers third-party actions (actions/*, astral-sh/setup-uv, codecov/codecov-action, peter-evans/create-pull-request, mikepenz/release-changelog-builder-action, github/codeql-action, crate-ci/typos) and the NVIDIA-NeMo/FW-CI-templates reusable workflows. Local ./.github reusable-workflow references are unchanged (not tags). Signed-off-by: svcnemo-autobot <svcnemo-autobot@nvidia.com>
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.
Background
Workflow steps referenced third-party actions and reusable workflows by mutable tags (e.g.
@v6), which are vulnerable to tag-mutation supply-chain attacks. GitHub's hardening guidance recommends pinning to immutable commit SHAs.What changed
Pinned every external
uses:in.github/workflows/*to the commit SHA it currently resolves to, keeping the original version as a trailing# vXcomment for readability and future bumps.Details
actions/*,astral-sh/setup-uv,codecov/codecov-action,peter-evans/create-pull-request,mikepenz/release-changelog-builder-action,github/codeql-action,crate-ci/typos, and theNVIDIA-NeMo/FW-CI-templatesreusable workflows across 16 workflow files../.githubreusable-workflow references are left unchanged (they are paths, not tags).Tested
uses:remains on a mutable tag (all now@<40-hex>).actions/checkout@v6→df4cb1c…,FW-CI-templates@v0.63.0→8ebb3ae….