Skip to content

chore: pin GitHub Actions to commit SHAs#6221

Merged
marc0olo merged 9 commits into
masterfrom
chore/pin-actions-to-sha
Apr 8, 2026
Merged

chore: pin GitHub Actions to commit SHAs#6221
marc0olo merged 9 commits into
masterfrom
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@v2 -> actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0

  • actions/setup-node@v3 -> actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1

  • actions/checkout@v4 -> actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

  • actions/checkout@v3 -> actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

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

  • actions/setup-python@v4 -> actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1

  • actions/github-script@v6 -> actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1

  • actions/setup-node@v4 -> actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0

Files modified

  • .github/workflows/cd.yml
  • .github/workflows/check_submodule.yml
  • .github/workflows/docs-tag.yml
  • .github/workflows/fork-build.yml
  • .github/workflows/interface-spec-slack.yml
  • .github/workflows/interface-spec.yml
  • .github/workflows/pr-cleanup.yml
  • .github/workflows/preview-deployment.yml
  • .github/workflows/update-search.yml

@slawomirbabicz
slawomirbabicz requested a review from a team as a code owner April 8, 2026 15:24
@github-actions github-actions Bot added the interface-spec Changes to the IC Interface Specification label Apr 8, 2026
@marc0olo
marc0olo merged commit c87b907 into master Apr 8, 2026
7 checks passed
@marc0olo
marc0olo deleted the chore/pin-actions-to-sha branch April 8, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

interface-spec Changes to the IC Interface Specification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants