Skip to content

INTER-2673: ci: pin third-party GitHub Actions to commit SHAs - #212

Merged
JuroUhlar merged 1 commit into
mainfrom
chore/pin-ci-actions
Nov 12, 2026
Merged

JuroUhlar merged 1 commit into
mainfrom
chore/pin-ci-actions

Conversation

@JuroUhlar

@JuroUhlar JuroUhlar commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Each pin resolves to the version CI already runs today, so behavior does not change.
  • Not covered: ci.yml still has no permissions: 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

Action From To
actions/checkout (publish.yaml) v7 3d3c42e… (v7.0.1)
dart-lang/setup-dart (publish.yaml) v1 6afc89d… (v1.8.1)
pnpm/action-setup (ci.yml) v6 73e4699… (v6.1.1)

Moving an upstream tag can no longer change what the pub.dev publish job
runs. Fixes Claude Security finding find_017nW6c92K629LNWrGJyQnRC.
@JuroUhlar
JuroUhlar requested a balanced review from Copilot November 10, 2026 13:58
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ This PR doesn't contain any changesets. If there are user-facing changes, don't forget to run:

pnpm exec changeset

to create a changeset.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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/checkout and dart-lang/setup-dart in the publish workflow.
  • Pins pnpm/action-setup in 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
JuroUhlar marked this pull request as ready for review November 11, 2026 10:07
@JuroUhlar JuroUhlar changed the title ci: pin third-party GitHub Actions to commit SHAs INTER-2673: ci: pin third-party GitHub Actions to commit SHAs Nov 11, 2026
Comment thread .github/workflows/publish.yaml Resolved
@JuroUhlar
JuroUhlar merged commit e6ff593 into main Nov 12, 2026
25 of 27 checks passed
@JuroUhlar
JuroUhlar deleted the chore/pin-ci-actions branch November 12, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants