ci: Pin third-party GitHub Actions to commit SHAs#5
Closed
n8n-cat-bot[bot] wants to merge 1 commit into
Closed
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.
Summary
Pins the only third-party GitHub Action used in
.github/workflows/node-test.ymlto a full commit SHA, with a trailing comment preserving the original version reference. Actions owned by theactions/andgithub/orgs are left as version tags per the task scope.Changes
pnpm/action-setup@v2→pnpm/action-setup@eae0cfeb286e66ffb5155f1a79b90583a127a68b # v2The SHA
eae0cfeb286e66ffb5155f1a79b90583a127a68bis the current tip of thev2branch inpnpm/action-setup(resolved via the GitHub API). Note thatv2is a moving major-version branch in that repo (no immutablev2tag exists), which is exactly why pinning it to a commit SHA is the recommended supply-chain hardening — the trailing# v2comment keeps the original intent readable for future bumps.Left unchanged (first-party, per task scope):
actions/checkout@v3actions/setup-node@v3Review checklist
# v2comment preserves the original version tag for traceabilityactions/*steps untouched per task scopeNot verified
uses:reference and CI will exercise it on the resulting PR.🐱 Opened by cat-bot. Review the changes; close if the approach is wrong.
Summary by cubic
Pin
pnpm/action-setupin.github/workflows/node-test.ymlto a specific commit SHA to prevent version drift and harden CI supply chain. Kept a trailing# v2comment for readability;actions/checkout@v3andactions/setup-node@v3remain unchanged.Written for commit 729c96c. Summary will update on new commits.