Repository navigation
ci: pin GitHub Actions to full commit SHAs - #1277
Merged
Merged
Conversation
Freeze the existing GitHub Actions versions at full commit SHAs. Workflow behavior is unchanged; only action references and version comments change. Scope: user-authorized CI supply-chain hardening; no runtime contract changes. Generated with Amplifier Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
Require the exact canonical immutable action references in workflow contracts. Preserve every existing assertion and coverage check without weakening validation. Generated with Amplifier Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.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.
Change
Pin 168 external GitHub Actions references across 18 workflows to full commit SHAs for their existing version tags. The canonical owner is
.github/workflows/. Original tags remain as comments; action subdirectories and all seven local reusable-workflow calls are unchanged. No action major-version upgrades or application changes.Align 25 literal action expectations in five workflow contract test files with those exact SHAs. All existing assertions, artifact/readiness contracts and test coverage remain; arbitrary SHAs are not normalized or accepted.
Validation
Workflow base:
922270fe351e3681e7ba0e926b0e10254de42b8c. Follow-up tested source: the five-test-file working-tree diff against pinned commit36127821887d8000a4e3565595e5918c7f4e84c5; all workflow bytes remain unchanged from that commit.onkey preserved and match the baseline after normalizing only the expected action pins.git diff --check.