Repository navigation
INTER-2673: ci: pin third-party GitHub Actions to commit SHAs - #212
Merged
Merged
Conversation
Moving an upstream tag can no longer change what the pub.dev publish job runs. Fixes Claude Security finding find_017nW6c92K629LNWrGJyQnRC.
Contributor
pnpm exec changesetto create a changeset. |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the change pinning three GitHub Actions to full commit SHAs.
No open issues 🎉
What changed in this PR
Pins three GitHub Actions to full commit SHAs to reduce exposure to upstream tag changes, including in the pub.dev publishing job that holds an OIDC publishing identity.
Changes:
- Pins
actions/checkoutanddart-lang/setup-dartin the publish workflow. - Pins
pnpm/action-setupin CI, retaining version comments alongside all three SHAs.
| File | Description |
|---|---|
.github/workflows/publish.yaml |
Pins checkout and Dart setup actions used for publishing. |
.github/workflows/ci.yml |
Pins the pnpm setup action used in CI. |
Review effort: Balanced
JuroUhlar
marked this pull request as ready for review
November 11, 2026 10:07
ilfa
reviewed
Nov 11, 2026
TheUnderScorer
approved these changes
Nov 12, 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.
Context
INTER-2673
Why
A moved upstream tag could change the code that runs in the pub.dev publish job, which holds the OIDC publishing identity, so the actions there are pinned to commit SHAs.
Things to note
ci.ymlstill has nopermissions:block.Verification
gh api repos/<owner>/<action>/git/ref/tags/<tag>(dereferenced for annotated tags) returns the pinned SHA for each version. Workflow YAML parses. CI on this PR runs the pinned actions.Change outline
actions/checkout(publish.yaml)v73d3c42e…(v7.0.1)dart-lang/setup-dart(publish.yaml)v16afc89d…(v1.8.1)pnpm/action-setup(ci.yml)v673e4699…(v6.1.1)