GeezerVison is showing github.com — v5+: DeprecationWarning: The `punycode` module is deprecated · Issue #1364 · actions/setup-node
v5+: DeprecationWarning: The punycode module is deprecated #1364Labels bugSomething isn't working DescriptionDescription:
Running v5 shows deprecation DEP0040 for node:punycode which is runtime-deprecated since Node v21. This refers to the node built-in punycode module, not the npm module of the same name.
Run actions/setup-node@v5
Attempting to download 24...
(node:2116) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
This issue was introduced by #1325.
Action version:
v5
Platform:
all
Runner type:
all
Tools version:
any
Repro steps:
Run the action
Expected behavior:
No deprecation warning
Actual behavior:
Deprecation warning Reacted by Christian Clauss, Roman Podlinov, liweijie0812, Edward Ogden, Milda, dgw, Michael Sverdlov, Trivikram Kamat, FunctionDJ, Joe Lencioni and 5 more Activitychanged the title [-]v5: `DeprecationWarning: The `punycode` module is deprecated`[/-] [+]v5: DeprecationWarning: The `punycode` module is deprecated[/+] on Sep 10, 2025v-priyagupta108 commented on Sep 11, 2025 Hello @silverwind 👋,
Thank you for your report. We'll investigate the issue and get back to you with the details! cclauss commented on Sep 12, 2025 The same message also appears in
- Post actions/setup-python@v6
- Post actions/setup-node@v5
trivikr commented on Sep 24, 2025 v-aparnajyothi-y commented on Oct 16, 2025 Hello Everyone Thanks everyone for the detailed investigation and inputs!
We’ve identified that the deprecation warning originates from the transitive dependency chain within @azure/ms-rest-js, specifically through its usage of [email protected]
→ [email protected] → punycode.
We’re currently working internally to fix the issue to remove the deprecated punycode reference. The fix is in progress, and we’ll update this issue once the change is integrated and released in a future version of setup-node.
Thank you for your patience and for bringing this up! Reacted by Mike McCready Reacted by FunctionDJ, Christian Clauss, Marco 'Lubber' Wienkoop, Mike McCready and Lachlan Kidson MikeMcC399 commented on Oct 17, 2025 jsoref commented on Oct 29, 2025 jsoref commented on Oct 29, 2025 silverwind commented on Oct 29, 2025 MikeMcC399 commented on Oct 31, 2025 @silverwind
I can recommend the https://www.npmjs.com/package/punycode.js module as a replacement for the node builtin, it's the same code as the node builtin, and has an unambiguous module name.
You've given the right recommendation, however as several previous posts describe, the issue is not caused directly in the actions/setup-node repo, but in the use of @actions/cache and so it needs to be fixed there. So hopefully issue actions/toolkit#2173 will get some attention from the GitHub team soon! jsoref commented on Oct 31, 2025 Reacted by Mike McCready, Christian Clauss and FunctionDJ MikeMcC399 commented on Oct 31, 2025 v-aparnajyothi-y commented on Nov 18, 2025 Hello Everyone, Thank you once again for reporting this issue. We are currently working with the actions-cache team internally to investigate and resolve the deprecation warnings related to Node 24. Once we have an update or a resolution, we will share it here.
If you have any additional insights or encounter related issues, please feel free to add them to this thread. We appreciate your patience and collaboration. Reacted by Mike McCready, Christian Clauss and Aaron Sarkissian jsoref commented on Dec 10, 2025 Reacted by Sebastian Danielsson salmanmkc commented on Dec 11, 2025 Maybe tomorrow, let's see if it can get approved Reacted by Mike McCready and Josh Soref MikeMcC399 commented on Dec 15, 2025 changed the title [-]v5: DeprecationWarning: The `punycode` module is deprecated[/-] [+]v5+: DeprecationWarning: The `punycode` module is deprecated[/+] on Dec 19, 2025v-aparnajyothi-y commented on Dec 24, 2025 Hello Everyone, Thanks everyone for the continued updates and investigation here.
As noted, the deprecation warning originates from transitive dependencies in @actions/cache. The linked PR (#1449) bumps @actions/cache to v5.0.1, which incorporates upstream changes that remove the deprecated punycode usage and should suppress this warning in Node 24+ environments.
Once this PR is merged and released, the punycode deprecation warning reported in this issue is expected to be resolved.
@MikeMcC399 — this change is scoped specifically to the punycode warning. We haven’t been able to reproduce the url.parse() deprecation warning (#1370) on our end with this change. If you’re still seeing it, could you please share a repro or workflow snippet so we can investigate further?
Thanks again for the patience and collaboration. we’ll update the thread once the fix is available in a released version. Reacted by Mike McCready and FunctionDJ MikeMcC399 commented on Dec 24, 2025 @aparnajyothi-y
@MikeMcC399 — this change is scoped specifically to the punycode warning. We haven’t been able to reproduce the url.parse() deprecation warning (#1370) on our end with this change. If you’re still seeing it, could you please share a repro or workflow snippet so we can investigate further?
I'm also not seeing this in the logs for PR #1449, so I deleted my previous comment. I'll happily check again after PR #1449 is merged. Reacted by v-aparnajyothi-y salmanmkc commented on Jan 2, 2026
@aparnajyothi-y
@MikeMcC399 — this change is scoped specifically to the punycode warning. We haven’t been able to reproduce the url.parse() deprecation warning (#1370) on our end with this change. If you’re still seeing it, could you please share a repro or workflow snippet so we can investigate further?
I'm also not seeing this in the logs for PR #1449, so I deleted my previous comment. I'll happily check again after PR #1449 is merged.
Thanks yeah I wasn't able to see with my testing when investigating MikeMcC399 commented on Jan 15, 2026 Reacted by Josh Soref and Sebastian Danielsson
MetadataMetadatabugSomething isn't working DevelopmentNo branches or pull requestsIssue actions
|