fix: pin 32 unpinned action(s),extract 1 unsafe expression(s) to env vars#3808
Closed
dagecko wants to merge 1 commit intonvm-sh:masterfrom
Closed
fix: pin 32 unpinned action(s),extract 1 unsafe expression(s) to env vars#3808dagecko wants to merge 1 commit intonvm-sh:masterfrom
dagecko wants to merge 1 commit intonvm-sh:masterfrom
Conversation
…vars Automated security fixes applied by Runner Guard (https://github.com/Vigilant-LLC/runner-guard). Changes: .github/workflows/latest-npm.yml | 8 ++++---- .github/workflows/lint.yml | 14 +++++++------- .github/workflows/nodejs-org.yml | 2 +- .github/workflows/nvm-install-test.yml | 6 ++++-- .github/workflows/rebase.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/require-allow-edits.yml | 2 +- .github/workflows/shellcheck.yml | 4 ++-- .github/workflows/tests-fast.yml | 4 ++-- .github/workflows/tests-installation-iojs.yml | 4 ++-- .github/workflows/tests-installation-node.yml | 4 ++-- .github/workflows/tests-xenial.yml | 4 ++-- .github/workflows/tests.yml | 4 ++-- .github/workflows/toc.yml | 4 ++-- .github/workflows/windows-npm.yml | 6 +++--- 15 files changed, 36 insertions(+), 34 deletions(-)
ljharb
requested changes
Mar 26, 2026
Member
ljharb
left a comment
There was a problem hiding this comment.
This is an unsolicited and undesired PR. Pinning actions is completely useless unless the action has dangerous permissions, and pinning my personal actions (that only i control) is also useless and removes the very intentional feature of free-flowing backwards-compatible updates.
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.
Security: Harden GitHub Actions workflows
Hey, we found some CI/CD security issues in this repo's workflows using Runner Guard, our open-source CI/CD security scanner at Vigilant. These are the same vulnerability classes being actively exploited right now in the tj-actions, Trivy, LiteLLM supply chain attack chain. We scanned the top 50K repos on GitHub and over 20,000 have this same problem. We're trying to get fixes out to as many maintainers as possible before more repos get hit.
This PR fixes what we could automatically, and flags anything else that needs a manual look. There's a real person behind this PR, we're actively checking back on comments so if you have any questions just drop them here and we'll respond.
Fixes applied (in this PR)
.github/workflows/latest-npm.yml.github/workflows/lint.yml.github/workflows/nodejs-org.yml.github/workflows/nvm-install-test.yml.github/workflows/rebase.yml.github/workflows/release.yml.github/workflows/require-allow-edits.yml.github/workflows/shellcheck.yml.github/workflows/tests-fast.yml.github/workflows/tests-installation-iojs.yml.github/workflows/tests-installation-node.yml.github/workflows/tests-xenial.yml.github/workflows/tests.yml.github/workflows/toc.yml.github/workflows/windows-npm.ymlAdvisory: additional findings (manual review recommended)
| Rule | Severity | File | Description |
| RGS-018 | high |
.github/workflows/nvm-install-test.yml| Suspicious Payload Execution Pattern || RGS-018 | high |
.github/workflows/windows-npm.yml| Suspicious Payload Execution Pattern || RGS-006 | high |
.github/workflows/windows-npm.yml| Curl-Pipe-Bash Remote Code Execution || RGS-018 | high |
.github/workflows/windows-npm.yml| Suspicious Payload Execution Pattern || RGS-018 | high |
.github/workflows/windows-npm.yml| Suspicious Payload Execution Pattern || RGS-006 | high |
.github/workflows/windows-npm.yml| Curl-Pipe-Bash Remote Code Execution || RGS-018 | high |
.github/workflows/windows-npm.yml| Suspicious Payload Execution Pattern || RGS-006 | high |
.github/workflows/windows-npm.yml| Curl-Pipe-Bash Remote Code Execution |Why this matters
GitHub Actions workflows that use untrusted input in
run:blocks, exposesecrets inline, or use unpinned third-party actions are vulnerable to
code injection, credential theft, and supply chain attacks. These are the same
vulnerability classes exploited in the tj-actions/changed-files incident
and subsequent supply chain attacks, which compromised CI secrets across
thousands of repositories.
How to verify
Review the diff — each change is mechanical and preserves workflow behavior:
${{ }}expressions fromrun:blocks intoenv:mappings, preventing shell injection(original version tag preserved as comment)
ACTIONS_RUNNER_DEBUG/ACTIONS_STEP_DEBUGwhich leak secrets in workflow logs
Run
brew install Vigilant-LLC/tap/runner-guard && runner-guard scan .or install from therepo to verify.
Found by Runner Guard | Built by Vigilant Cyber Security | Learn more
If this PR is not welcome, just close it -- we won't send another.