Skip to content

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

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#379
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 dependency bump with no application code or workflow input changes; verify PR/release jobs still pass after merge.

Overview
Upgrades actions/setup-node from v6 to v7 in the release-on-merge and test-on-pull-request workflows. node-version: '16' and cache: 'pnpm' are unchanged.

Reviewed by Cursor Bugbot for commit b5bf326. 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:

The GitHub Actions step actions/setup-node@v7 uses a mutable version tag that could be silently redirected to malicious code by an attacker who compromises the action's repository.

More details about this

The actions/setup-node@v7 step uses a mutable tag (v7) instead of a pinned commit SHA. Since GitHub Actions owners can silently move what v7 points to at any time, an attacker who compromises the actions/setup-node repository could redirect this tag to malicious code. This could happen during the workflow execution, and since this job runs on every pull request, the malicious code would execute with access to your repository contents and secrets.

Exploit scenario:

  1. Attacker compromises the actions organization on GitHub
  2. Attacker moves the v7 tag in the setup-node repository to point to a commit containing malicious code (e.g., exfiltrating ${{ secrets.GITHUB_TOKEN }} or repository contents)
  3. Your workflow runs on the next pull request
  4. GitHub Actions fetches the v7 tag, which now resolves to the attacker's malicious commit
  5. The malicious code executes in the setup-node@v7 step with full access to your repository and environment variables

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 keep using, for example uses: actions/setup-node@<full-commit-sha>.
  2. Look up the commit SHA from the v7 release in the actions/setup-node repository and copy the full hash, not a shortened hash. This makes the workflow run the exact same action code every time.
  3. Keep the existing with: settings unchanged under that step, for example the node-version and cache values do not need to change.
  4. If you want to keep the version readable, add a comment next to the pinned SHA such as # actions/setup-node v7 so future updates are easier to manage.

Alternatively, if you need to use a local action instead of a remote one, change the step to a local path such as uses: ./path/to/action, which is also allowed by this rule.

💬 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 uses mutable tag v7 instead of a commit SHA, allowing the action owner to silently redirect to malicious code during workflow execution.

More details about this

The actions/setup-node action is pinned to the v7 tag, which is a mutable reference that can be silently repointed by the action owner to point to different commits without any warning.

Here's how an attacker could exploit this:

  1. Compromise the action repository: An attacker gains write access to the actions/setup-node repository (via stolen credentials, compromised maintainer account, etc.).

  2. Repoint the v7 tag: The attacker moves the v7 tag to a malicious commit they've created that injects backdoors into Node.js installations or steals environment secrets.

  3. Automatic deployment: When your GitHub Actions workflow runs on the next push to main, it automatically uses the new malicious code pointed to by v7. Your CI/CD system then executes the backdoored Node.js setup and potentially exposes GITHUB_TOKEN or other secrets to the attacker.

  4. Supply chain compromise: The attacker now has code execution within your repository's CI/CD context, allowing them to inject malicious code into your published packages or steal sensitive data.

This is exactly how the trivy-action and kics-github-action compromises occurred in real incidents. Using a specific 40-character commit SHA (immutable) instead of v7 (mutable) prevents this attack.

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 action version you intend to use, for example uses: actions/setup-node@<full-commit-sha>.
  2. Keep the existing with: settings unchanged under that step, including node-version: '16' and cache: 'pnpm'.
  3. Choose the SHA from the upstream actions/setup-node release that matches the version you want, rather than using a tag or branch name. Pinning to a commit SHA prevents the referenced code from changing without an explicit workflow update.
  4. Update the other mutable uses: entries in the same workflow the same way, because actions/checkout@v6, pnpm/action-setup@v5, and cycjimmy/semantic-release-action@v5 are also tag-based references and should be changed to full commit SHAs.
💬 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
Collaborator

⚠️ 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