Bump GitHub Actions runtime from node16 to node24#4
Conversation
Agent-Logs-Url: https://github.com/luarocks/gh-actions-lua/sessions/b30f0a28-1c7e-40cb-ba25-33bdc32bcc0a Co-authored-by: Tieske <1077043+Tieske@users.noreply.github.com>
|
@copilot also fix the undici dependencies, even it it means major version bumps |
…es and ESM migration Agent-Logs-Url: https://github.com/luarocks/gh-actions-lua/sessions/ae17a216-2509-4e6d-8268-aad7f04d8ed8 Co-authored-by: Tieske <1077043+Tieske@users.noreply.github.com>
Done in commit fec6f0e. All Since all new major versions are ESM-only, |
Tieske
left a comment
There was a problem hiding this comment.
looks ok. Test pass. only unsure about why all the dependencies (3000+ files) are included....
|
I think such huge number of files changed is expected (due the bump from node 16 to node 24), because actions usually ship all dependencies to not miss any dep at runtime.
|
Node.js 16 reached EOL in September 2023 and GitHub Actions has deprecated the
node16runtime. This upgrades the action to run onnode24.Changes
action.yml:using: 'node16'→using: 'node24'main.js: Replace deprecatedString.prototype.substr()withslice()(same semantics, spec-compliant); migrated from CommonJSrequire()to ES moduleimportstatements (required by the new ESM-only@actions/*packages)package.json: Bumped all@actions/*dependencies to their latest major versions to resolveundiciCVEs; added"type": "module"for ESM support:@actions/cache:^4.0.0→^6.0.0@actions/core:^1.2.6→^3.0.0@actions/exec:^1.0.4→^3.0.0@actions/io:^1.0.2→^3.0.2@actions/tool-cache:^2.0.2→^4.0.0node_modules/:npm install+npm audit fix—npm auditnow reports 0 vulnerabilitiesKnown incompatibilities
substrdeprecationsliceis the drop-in replacementfetch(Node 18+)@actions/http-client— no conflictmain.jsis fully compatible@actions/*versions are ESM-only;main.jsnow usesimportinstead ofrequire()undici ≤6.23.0CVEs@actions/http-clientv4 pulls inundici 6.24.x(patched)📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.