Skip to content

chore(deps): bump actions/setup-node from 6 to 7 - #351

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/actions/setup-node-7
Open

chore(deps): bump actions/setup-node from 6 to 7#351
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/actions/setup-node-7

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 14, 2026

Copy link
Copy Markdown
Contributor

Bumps actions/setup-node from 6 to 7.

Release notes

Sourced from actions/setup-node's releases.

v7.0.0

What's Changed

Enhancements:

Bug fixes:

Documentation updates:

Dependency update:

New Contributors

Full Changelog: actions/setup-node@v6...v7.0.0

v6.5.0

What's Changed

Full Changelog: actions/setup-node@v6.4.0...v6.5.0

v6.4.0

What's Changed

Dependency updates:

New Contributors

Full Changelog: actions/setup-node@v6...v6.4.0

v6.3.0

What's Changed

Enhancements:

... (truncated)

Commits
  • 8207627 Migrate to ESM and upgrade dependencies (#1574)
  • 04be95c Add cache-primary-key and cache-matched-key as outputs (#1577)
  • 7c2c68d docs: Update caching recommendations to mitigate cache poisoning risks (#1567)
  • 6a61c03 Merge pull request #1569 from jasongin/update-actions-cache-5.1.0
  • 30eb73b Resolve high-severity audit issues
  • 4e1a87a Update dist
  • 360237f Strict equality
  • 4f8aac5 Bump @​actions/cache to 5.1.0, log cache write denied
  • f4a67bb Only use mirrorToken in getManifest if it's provided (#1548)
  • 0355742 Remove dummy NODE_AUTH_TOKEN export (#1558)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note

Low Risk
CI-only action version bump with identical inputs; low impact unless setup-node v7 breaks Node 16 or pnpm caching in these jobs.

Overview
Upgrades actions/setup-node from v6 to v7 in the PR test and release-on-merge workflows. node-version: '16' and cache: 'pnpm' are unchanged; only the action major version pin moves.

This is a routine Dependabot-style CI dependency bump with no application or workflow logic edits.

Reviewed by Cursor Bugbot for commit bc20eab. Bugbot is set up for automated code reviews on this repo. Configure here.

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6 to 7.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v6...v7)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update Github_actions code labels Jul 14, 2026
with:
version: 7.6.0
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Semgrep identified an issue in your code:

GitHub Actions step uses mutable tag v7 instead of a pinned commit SHA, allowing the action maintainer to silently update the code executed in your workflows—enabling supply-chain attacks.

More details about this

The GitHub Actions workflow uses actions/setup-node@v7, which references a mutable tag instead of a specific commit. Tag v7 can be repointed at any time by the action maintainer to point to different code without your knowledge.

Here's how an attacker could exploit this:

  1. Compromise the action repository: An attacker gains access to the actions/setup-node repository (e.g., through compromised credentials or social engineering).

  2. Repoint the tag: The attacker moves the v7 tag to commit a malicious version they've created. This tag could now install a backdoored version of Node.js or inject malware into your build environment.

  3. Trigger the workflow: The next time your workflow runs (on any pull request), the step - uses: actions/setup-node@v7 will fetch and execute the attacker's malicious code instead of the legitimate action.

  4. Compromise your environment: The malicious action could steal environment variables (like GITHUB_TOKEN), exfiltrate source code, inject backdoors into your built artifacts, or compromise your CI/CD pipeline entirely.

This attack pattern mirrors real compromises like the trivy-action and kics-github-action incidents, where attackers exploited mutable tag references to distribute malware through the supply chain.

To resolve this comment:

✨ Commit fix suggestion
  1. Replace the mutable action reference actions/setup-node@v7 with a full 40-character commit SHA for the exact release you want to trust, for example uses: actions/setup-node@<full-commit-sha>.
  2. Resolve the SHA from the action's release page or repository so the pinned commit matches the current v7 version you intended to use.
  3. Keep the existing with: block unchanged under the pinned action reference, for example node-version: '16' and cache: 'pnpm' do not need to change. Pinning to a commit prevents the action owner from moving a tag or branch to different code later.
  4. If you want to keep the version readable for future updates, add a short comment next to the pinned SHA indicating the human-friendly version, such as # actions/setup-node v7.
💬 Ignore this finding

Reply with Semgrep commands to ignore this finding.

  • /fp <comment> for false positive
  • /ar <comment> for acceptable risk
  • /other <comment> for all other reasons

Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by github-actions-mutable-action-tag.

Need help? Review go/semgrep-playbook or Reach out in #security-vulnerabilities on Slack.

You can view more details about this finding in the Semgrep AppSec Platform.

with:
version: 7.6.0
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Semgrep identified an issue in your code:

GitHub Actions step actions/setup-node@v7 uses a mutable version tag that can be silently repointed by the action owner to malicious code, enabling supply-chain attacks.

More details about this

The GitHub Actions step actions/setup-node@v7 uses a mutable version tag (v7) instead of a pinned commit SHA. This means the action owner can silently update what code runs in your workflow without any change to this file.

Here's a concrete attack scenario:

  1. An attacker compromises the actions/setup-node repository and gains control over the v7 tag
  2. They push malicious code to the repository and repoint the v7 tag to their compromised commit
  3. Your workflow runs and @v7 now resolves to the attacker's commit instead of the legitimate version
  4. The malicious code executes with full access to your repository secrets (GITHUB_TOKEN), allowing the attacker to steal credentials, push code, or modify your releases
  5. This could be used to inject malware into your published packages or exfiltrate sensitive data

This is exactly how the trivy-action and kics-github-action compromises worked—attackers repointed version tags to run their own code.

To resolve this comment:

✨ Commit fix suggestion
  1. Replace the mutable action reference actions/setup-node@v7 with a full 40-character commit SHA for the exact actions/setup-node release you want to keep using, for example uses: actions/setup-node@<full-40-character-sha>.
  2. Keep the existing with: settings unchanged so only the action version pin changes.
  3. Confirm the SHA comes from the official actions/setup-node repository release or tag that matches your intended version, and avoid short SHAs or version tags such as @v7. Pinning to a full commit SHA prevents the referenced action code from changing unexpectedly.
💬 Ignore this finding

Reply with Semgrep commands to ignore this finding.

  • /fp <comment> for false positive
  • /ar <comment> for acceptable risk
  • /other <comment> for all other reasons

Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by github-actions-mutable-action-tag.

Need help? Review go/semgrep-playbook or Reach out in #security-vulnerabilities on Slack.

You can view more details about this finding in the Semgrep AppSec Platform.

@scribdbot scribdbot added the 30+ days open PR has been open for 30+ days label Aug 18, 2026
@scribdbot

Copy link
Copy Markdown

⚠️ PR Age Notice: This pull request was opened over 30 days ago and has been labeled for visibility. If there's no activity for 7 days after this label is applied, it will be automatically closed.

To keep it open, please leave a comment or push an update. You can also label it as 'pinned' to prevent auto-closure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

30+ days open PR has been open for 30+ days dependencies Pull requests that update a dependency file github_actions Pull requests that update Github_actions code

Development

Successfully merging this pull request may close these issues.

1 participant