Security: pin GitHub Actions to prevent supply chain attacks#35
Open
allie-fowler wants to merge 1 commit intomasterfrom
Open
Security: pin GitHub Actions to prevent supply chain attacks#35allie-fowler wants to merge 1 commit intomasterfrom
allie-fowler wants to merge 1 commit intomasterfrom
Conversation
Updates all action references in the README workflow to use pinned versions instead of branch references (@master). Background: In March 2025, the tj-actions/changed-files supply chain attack demonstrated that referencing actions by mutable branch or tag names is dangerous. Attackers who compromise an action repo can rewrite a tag or push to a branch, and every downstream workflow silently runs the attacker's code with access to the repo's secrets. See: https://www.stepsecurity.io/blog/hackerbot-claw-github-actions-exploitation Changes: - actions/checkout: @master -> @v6 (GitHub-owned, major version tag) - rlespinasse/github-slug-action: @v2.x -> @<sha> (v5, SHA-pinned) - ad-m/github-push-action: @master -> @<sha> (v1.0.0, SHA-pinned) GitHub-owned actions (actions/*) use major version tags since GitHub controls those repos and follows semver. Third-party actions are SHA-pinned because any individual maintainer account could be compromised, and a SHA is immutable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates all action references in the README workflow from mutable branch
references (
@master) to pinned versions, mitigating supply chain attacks.Why this matters
In March 2025, the tj-actions/changed-files supply chain attack demonstrated that referencing actions by mutable branch or tag names is dangerous. Attackers who compromise an action repo can rewrite a tag or push to a branch, and every downstream workflow silently runs the attacker's code with full access to the repo's secrets.
This repo is public, meaning its workflow files are visible to anyone researching targets.
Changes
actions/checkout@master@v6rlespinasse/github-slug-action@v2.x@9e7def6...(v5)ad-m/github-push-action@master@77c5b41...(v1.0.0)GitHub-owned actions (
actions/*) use major version tags since GitHub controls those repos. Third-party actions are SHA-pinned because any individual maintainer's account could be compromised.Test plan
createtrigger still fires and updates the README on new branches