Skip to content

chore: pin GitHub Actions to commit SHAs#31

Merged
gregorydemay merged 3 commits into
mainfrom
chore/pin-actions-to-sha
May 15, 2026
Merged

chore: pin GitHub Actions to commit SHAs#31
gregorydemay merged 3 commits 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@v4 -> actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

  • actions/cache@v4 -> actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0

  • jdx/mise-action@v2 -> jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac # v2.4.4

  • softprops/action-gh-release@v2 -> softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1

  • actions/checkout@v5 -> actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1

Files modified

  • .github/workflows/release.yml
  • .github/workflows/workflow.yml

@slawomirbabicz slawomirbabicz requested a review from a team as a code owner April 10, 2026 08:39
Copy link
Copy Markdown
Contributor

@mbjorkqvist mbjorkqvist left a comment

Choose a reason for hiding this comment

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

Thanks @slawomirbabicz!

@gregorydemay
Copy link
Copy Markdown
Contributor

Problem with CI. Trying reopening the PR.

@gregorydemay gregorydemay reopened this May 15, 2026
@gregorydemay gregorydemay merged commit 79b4f24 into main May 15, 2026
17 of 26 checks passed
@gregorydemay gregorydemay deleted the chore/pin-actions-to-sha branch May 15, 2026 08:38
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.

3 participants