Skip to content

ci: pin pnpm/action-setup and bufbuild/buf-setup-action to commit SHAs - #134

Merged
piob-io merged 1 commit into
mainfrom
vulnagent/hygiene-2026-09-pin-actions
Sep 4, 2026
Merged

piob-io merged 1 commit into
mainfrom
vulnagent/hygiene-2026-09-pin-actions

Conversation

@rcooney-sh

@rcooney-sh rcooney-sh commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Security hygiene (vulnagent campaign 2026-09, group hg_3dbc8c793dda1728). Aikido flagged release.yml, which runs with contents: write and pushes the version tags customers consume, so a hijacked mutable tag on either action could poison a release. The same two actions are used identically in build.yml, lint.yml, test-action.yml and verify-build.yml, so all 12 uses: lines are pinned to the same SHAs to keep the repo consistent.

- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
- uses: bufbuild/buf-setup-action@a47c93e0b1648d5651a065437926377d060baa99 # v1.50.0

How to review: b906affc is the commit pnpm/action-setup@v4 resolves to today (v4.3.0; v4.4.0 exists but v4 has not been moved to it). a47c93e0 is bufbuild/buf-setup-action@v1 = v1.50.0. The existing .github/dependabot.yaml already tracks github-actions daily and will bump these.

Risk level: low
Breaking-change risk: none. The SHAs are the exact commits the floating tags currently resolve to, so every workflow runs the same action code as before.
Validation: SHAs verified with git ls-remote. build, lint, test-action and verify-build run on pull_request and exercise the pinned actions in this PR's CI; release.yml is workflow_dispatch and is exercised on the next release.
Rollback: revert the commit.

Covered problems: prb_d0f5fe6f8388dc0c
Aikido findings

Linear: https://linear.app/blacksmith-sh/issue/SEC-691/medium-3rd-party-github-actions-should-be-pinned


View with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is enabled. (Staging)


View with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is enabled.

The release workflow runs with contents:write and pushes the version
tags customers consume, so a hijacked mutable tag on either action
could poison a release. Pin both to the commit their tag currently
resolves to (pnpm/action-setup v4 -> v4.3.0, buf-setup-action v1 ->
v1.50.0) in every workflow so the pins stay consistent; Dependabot
(.github/dependabot.yaml) already tracks github-actions and will bump
the SHAs.

Co-authored-by: Codesmith Staging <[email protected]>
@rcooney-sh
rcooney-sh requested a review from piob-io September 3, 2026 20:32
@rcooney-sh
rcooney-sh marked this pull request as ready for review September 3, 2026 22:12
@piob-io
piob-io merged commit ebd5ca2 into main Sep 4, 2026
17 checks passed
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.

2 participants