Pin third-party actions to commit SHAs - #13
Merged
Merged
Conversation
Centralising the release job here also centralises its supply-chain posture: codama#1149 had pinned changesets/action and pnpm/action-setup in its inline job, which the shared workflow replaced with mutable tags. Pin them in every workflow (third-party only, actions/* stay on tags, as in codama#1149) and add a github-actions Dependabot ecosystem so the pins do not rot. changesets/action moves to v2.1.2 (patch fixes only).
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.
This PR pins the third-party actions used by the reusable workflows to commit SHAs and adds a
github-actionsDependabot ecosystem so the pins do not rot.Centralising the release job here also centralises its supply-chain posture: codama-idl/codama#1149 had SHA-pinned
changesets/actionandpnpm/action-setupin codama's inline release job, and the switch to the shared workflow (codama-idl/codama#1155) would silently replace those with mutable tags. Pinning here fixes that once for every calling repository.pnpm/action-setup@ea17c68d… # v6.1.0andchangesets/action@ae32849d… # v2.1.2inrelease.yml,cut.yml,promote.yml(SHAs verified against the tag objects; identical to what Dependabot already applied on codamamain).changesets/actionmoves from 2.1.1 to 2.1.2, patch fixes only.actions/*stay on tags, same rule as #1149..github/dependabot.yml: weeklygithub-actionsupdates, 7-day cooldown, minor/patch grouped, majors separate (same configuration as codama).Callers keep
uses: …@v1on purpose: the moving tag is this repository's distribution mechanism, governed by its own ruleset.