Remove Node.js warning spam after fix #190988
Replies: 2 comments
-
|
Unfortunately there's no way to suppress these warnings right now, they're emitted by the GitHub Actions runner itself, not by the actions, so |
Beta Was this translation helpful? Give feedback.
-
|
You're not doing anything wrong — this is expected behavior right now. Setting: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true only forces JavaScript actions to run on Node 24, but it does not suppress the warnings. The warnings still appear because some actions (including official or third-party ones) are internally built on Node.js 20, and GitHub emits deprecation warnings for those regardless of the runtime override. A couple of things you can check:
That said, even after updating everything, you may still see these warnings. GitHub is still in the process of migrating away from Node 20, so some noise is unavoidable for now. In short: your setup is correct — the warnings are coming from dependencies you don't fully control yet. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Actions Checkout
Discussion Details
How do I stop the Node.js 20 warning spam? I'm aware Node.js 20 is being deprecated. I followed the instructions to test Node24 but I'm still getting spammed.
On each of my push builds, I had 15 warnings about Node20:
Original
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, actions/setup-python@v5, actions/upload-artifact@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. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/My yaml files already used this and similar for the other actions mentioned:
uses: actions/checkout@v4I added this to all of my actions:
Now I'm still getting 15 warnings about this. I'm already aware that I forced node24 to run. This one is completely unnecessary.
Post Fix
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4, actions/checkout@v4, actions/setup-python@v5, actions/upload-artifact@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/Beta Was this translation helpful? Give feedback.
All reactions