Skip to content

chore: pin GitHub Actions to commit SHAs - #15

Merged
fspreiss merged 1 commit into
mainfrom
chore/pin-actions-to-sha
Apr 10, 2026
Merged

chore: pin GitHub Actions to commit SHAs#15
fspreiss merged 1 commit into
mainfrom
chore/pin-actions-to-sha

Conversation

@slawomirbabicz

Copy link
Copy Markdown
Contributor

Pin GitHub Actions to commit SHAs

GitHub Actions referenced by tag (e.g. actions/checkout@v4) use a mutable pointer — the tag owner can move it to a different commit at any time, including a malicious one. This is the attack vector used in the tj-actions/changed-files incident (CVE-2025-30066).

Pinning to a full 40-character commit SHA makes the reference immutable. The # tag comment preserves human readability so reviewers can tell which version is pinned.

Important: a SHA can also originate from a forked repository. A malicious actor can fork an action, push a compromised commit to the fork, and the SHA will resolve — but it won't exist in the upstream canonical repo. Each SHA in this PR was verified against the action's canonical repository (not a fork).

Changes

  • actions/checkout@v1 -> actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0

Files modified

  • .github/workflows/chainkeys-testing-canister.yml

@slawomirbabicz
slawomirbabicz requested a review from a team as a code owner April 10, 2026 07:58
@fspreiss

Copy link
Copy Markdown
Contributor

@slawomirbabicz, I approved all your Action pin PRs. Are you merging them yourselves, or would you like me to do it?

@fspreiss
fspreiss merged commit 432ae15 into main Apr 10, 2026
7 checks passed
@fspreiss
fspreiss deleted the chore/pin-actions-to-sha branch April 10, 2026 09:05
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