Skip to content

chore: pin GitHub Actions to commit SHAs#413

Merged
0x46616c6b merged 1 commit into
mainfrom
chore/pin-gha-to-sha
Jun 3, 2026
Merged

chore: pin GitHub Actions to commit SHAs#413
0x46616c6b merged 1 commit into
mainfrom
chore/pin-gha-to-sha

Conversation

@0x46616c6b

Copy link
Copy Markdown
Contributor

Type of Change

  • Enhancement / new feature

Description

Pins every third-party GitHub Action reference in this repo to a full 40-character commit SHA, with the human-readable version tag preserved as a trailing comment. This implements the org-wide policy from advisory-space ADR 0006 — SHA Pinning for GitHub Actions.

Why: Mutable tags (@v4, @v2.6.1) can be silently moved or rewritten by a maintainer or an attacker with repo access. The tj-actions/changed-files and codecov/codecov-action supply-chain compromises in 2025 showed that consumers pinning to tags executed tampered code without any change to their workflow files. A commit SHA is immutable; pinning to it guarantees the exact code that runs.

Pinned references:

  • actions/checkoutdf4cb1c069e1874edd31b4311f1884172cec0e10 (v6)
  • jdx/mise-action1648a7812b9aeae629881980618f079932869151 (v4)
  • actions/upload-artifact043fb46d1a93c77aae656e7c1c64a875d1fc6a0a (v7)
  • cla-assistant/github-actionca4a40a7d1004f18d9960b404b97e5f30a505a08 (v2.6.1)
  • Staffbase/gha-workflows/.../template_automerge_dependabot.yml9ea5ca06a1ef865b0af9745b47ea74b731b65fc5 (v13.4.1)
  • Staffbase/gha-workflows/.../template_release_drafter.yml9ea5ca06a1ef865b0af9745b47ea74b731b65fc5 (v13.4.1)

The local uses: ./ reference in integration.yml is left untouched (not a third-party reference). Dependabot is already configured for the github-actions ecosystem in .github/dependabot.yml and will keep these SHAs current.

Checklist


The changes and the PR were generated by Claude.

Pin all third-party GitHub Action references to full commit SHAs with
the version tag preserved as a trailing comment, per advisory-space
ADR 0006 (SHA pinning for GitHub Actions). This mitigates supply-chain
risk from mutable tags that can be silently retagged.

Co-Authored-By: Claude <claude@anthropic.com>
@0x46616c6b 0x46616c6b marked this pull request as ready for review June 3, 2026 12:24
@0x46616c6b 0x46616c6b requested a review from a team as a code owner June 3, 2026 12:24
@0x46616c6b 0x46616c6b requested review from axdotl and timkante June 3, 2026 12:24
@0x46616c6b 0x46616c6b merged commit 64d9198 into main Jun 3, 2026
11 checks passed
@0x46616c6b 0x46616c6b deleted the chore/pin-gha-to-sha branch June 3, 2026 14:23
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 3, 2026
@0x46616c6b 0x46616c6b added the chore Pull requests that are chores label Jun 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

chore Pull requests that are chores

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant