Skip to content

STRY63592000: Migrate Node.js runtime from node20 to node24 - #14

Merged
maheshganjiSnc merged 2 commits into
devfrom
scratch/STRY63592000
Apr 30, 2026
Merged

STRY63592000: Migrate Node.js runtime from node20 to node24#14
maheshganjiSnc merged 2 commits into
devfrom
scratch/STRY63592000

Conversation

@maheshganjiSnc

Copy link
Copy Markdown
Collaborator

Summary

Migrate GitHub Action runtime from Node.js 20 to Node.js 24 due to GitHub deprecation of Node 20 on Actions runners (Node 20 EOL: April 2026, forced migration: June 2026).

What Changed

action.yml

  • runs.using updated from node20node24

package.json — Dependencies pinned to exact versions

Package Old New
@actions/core ^1.10.1 1.11.1
@vercel/ncc ^0.38.0 0.38.3
axios ^1.7.7 1.8.4
follow-redirects ^1.15.6 1.15.9

package-lock.json

  • Regenerated for pinned dependency versions

dist/index.js

  • Rebuilt with ncc using pinned dependencies on Node 24

Workflow files updated

File Change
.github/workflows/test.yml node 14.x → 24.x, setup-node v1 → v4, checkout v2 → v4

Source Code

  • Zero changes to src/main.js — no functional impact

Testing

  • npm install and npm run build verified locally on Node v24.14.1
  • End-to-end tested with token-based auth (v2 API) — passed
  • End-to-end tested with username/password auth (v1 API) — passed
  • Known warning: [DEP0169] url.parse() from follow-redirects — cosmetic only, no functional impact

Dependencies

All approved via internal open source library approval process.

@arnabsn

arnabsn commented Apr 27, 2026

Copy link
Copy Markdown

Did we check if there is any issue with the axios version?

@maheshganjiSnc
maheshganjiSnc merged commit 0901ca2 into dev Apr 30, 2026
2 checks passed
maheshganjiSnc added a commit that referenced this pull request Jun 15, 2026
…b Action to Marketplace with Node 24 runtime support. (#15)

* updated readme file (#8)

Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com>

* STRY59060031: Upgrading ServiceNow DevOps GitHub Actions to Node version 20. (#7)

* updated readme file

* MAINT: Test custom action with node20

* Upgraded dependency versions

* rebuild

* update vlcc/ncc version

---------

Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com>
Co-authored-by: ramaraju.polanki <ramaraju.polanki@servicenow.com>

* Add CodeQL security scanning workflow

  - Run weekly security scans every Monday
  - Scan pull requests targeting main branch
  - Use security-extended query suite for comprehensive analysis

* MAINT:Enable CodeQL scanning for dev branch PRs

* Update README.md

* STRY63592000: Migrate Node.js runtime from node20 to node24 (#14)

* STRY63281042: Upgrade Node.js runtime from node20 to node24, update dependencies and workflow versions

* STRY63592000: Pin dependency versions and rebuild dist for Node 24 migration

---------

Co-authored-by: Cascade Bot <cascade@example.com>

---------

Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com>
Co-authored-by: ramaraju.polanki <ramaraju.polanki@servicenow.com>
Co-authored-by: ankur-jain1-snow <ankur.jain1@servicenow.com>
Co-authored-by: nitin-parashar <nitin.parashar@servicenow.com>
Co-authored-by: Cascade Bot <cascade@example.com>
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.

3 participants