fix(ci): Replace npm install -g @go-task/cli with go-task/setup-task action to eliminate npm supply-chain risk.#142
Open
junhaoliao wants to merge 2 commits intoy-scope:mainfrom
Open
fix(ci): Replace npm install -g @go-task/cli with go-task/setup-task action to eliminate npm supply-chain risk.#142junhaoliao wants to merge 2 commits intoy-scope:mainfrom
npm install -g @go-task/cli with go-task/setup-task action to eliminate npm supply-chain risk.#142junhaoliao wants to merge 2 commits intoy-scope:mainfrom
Conversation
…sk` action to eliminate npm supply-chain risk.
WalkthroughThe pull request updates three GitHub Actions workflow files to replace npm-based Task CLI installation with the dedicated Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
npm install -g @go-task/cli with go-task/setup-task actionnpm install -g @go-task/cli with go-task/setup-task action to eliminate npm supply-chain risk.
Bill-hbrhbr
approved these changes
Apr 4, 2026
Bill-hbrhbr
requested changes
Apr 4, 2026
Contributor
Bill-hbrhbr
left a comment
There was a problem hiding this comment.
Need to use reusable github action.
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.
Description
All CI workflows install the Task runner via
npm install -g @go-task/cli.@go-task/clideclaresa transitive dependency on
axios: ^1.8.2, and because global npm installs have no lock file, npmresolves to whatever the latest semver-compatible version is at install time. During the
axios supply-chain compromise on 2026-03-31, this caused CI runners to pull in the
malicious
axios@1.14.1package, which executed a post-install script that connected to anattacker-controlled C2 server.
This PR replaces all occurrences of
npm install -g @go-task/cliwith the officialgo-task/setup-taskGitHub Action, pinned by commit SHA. The action downloads the Taskbinary directly from GitHub Releases without involving npm, eliminating the transitive dependency on
axios and the broader npm supply-chain attack surface.
Checklist
breaking change.
Validation performed
npm install -gcommands remain in any workflow file.3be4020d41929789a01026e0e427a4321ce0ad44corresponds togo-task/setup-taskv2.0.0.Summary by CodeRabbit