Skip to content

fix: use up to date actions/setup-node#260

Open
ManuelRauber wants to merge 4 commits intoOWASP:mainfrom
ManuelRauber:patch-1
Open

fix: use up to date actions/setup-node#260
ManuelRauber wants to merge 4 commits intoOWASP:mainfrom
ManuelRauber:patch-1

Conversation

@ManuelRauber
Copy link
Copy Markdown

Summary

The current version of actions/setup-node produces a warning:

Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026.

Updating the usage to v6 removes the warning.

Why this change

To remove the warning about outdated node action usage.

What changed

  • Only updated actions/setup-node from v4 to v6.

Validation

Tested in my own repo with a copy of this action.

User-facing impact

Does this change:

  • affect scanning behavior
  • affect output formatting
  • affect JSON output
  • affect docs only

Notes

Add any extra context here.

The current version of actions/setup-node produces a warning:

> Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026.

Updating the usage to v6 removes the warning.
@sonukapoor
Copy link
Copy Markdown
Collaborator

Thanks for this update @ManuelRauber. Could you also update the workflow YAML files in this repo that still use actions/setup-node@v4? That would keep the GitHub Action and the repo CI workflows aligned on the same current major version.

@ManuelRauber
Copy link
Copy Markdown
Author

Thanks for this update @ManuelRauber. Could you also update the workflow YAML files in this repo that still use actions/setup-node@v4? That would keep the GitHub Action and the repo CI workflows aligned on the same current major version.

Hi @sonukapoor

I've updated all the other actions as well.

@sonukapoor
Copy link
Copy Markdown
Collaborator

Thanks for this. Since this PR was opened, we added a new GitHub Pages workflow in .github/workflows/docs-site.yml for the Docusaurus website.

Can you also update that workflow so the Node.js 20 action warning is handled there as well? It currently uses:

  • actions/checkout@v4
  • actions/setup-node@v4
  • actions/upload-pages-artifact@v3
  • actions/deploy-pages@v4

That should make this PR cover all current workflows.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants