Skip to content

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

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

STRY63592000: Migrate Node.js runtime from node20 to node24#65
maheshganjiSnc merged 4 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 12.x → 24.x, setup-node v1 → v4, checkout v2 → v4, fixed typo ubutun-latest → ubuntu-latest
.github/workflows/workflowToken.yml node 14.x → 24.x, setup-node v3 → v4, checkout v3 → v4
.github/workflows/create-release.yml node 18 → 24
.github/workflows/test-release.yml node 18 → 24

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.

maheshganjiSnc and others added 4 commits March 12, 2026 14:52
* 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

* Sync the Dev Branch with the Main Branch (#29)

* change version to 1.35.2

* Update README.md

* STRY55387839:Adding support for token authentication in changeaction

* STRY55387839:Updating README.md file and adding sample workflow script

* STRY55387839:Updated node version to node16

* STRY55387839:Modifying workflow file

* defect fixes

* defect fixes

* fixes

* STRY55377568: Add logs in case of auto-approval/rejection

* Deployment Gate changes

* change status poll issue fix

* defect fixes

* updated version to v2.0.0

* updated version to v2.0.0

* fixed syntax issue in src/lib/create-change.js

* added new index.js file

* STRY56127181 : As per comments by customer as part of a case task

* STRY56127181 : Adding AutoCloseChange to Helper text in Readme file

* STRY56127181 : adding etc alone in description file

* STRY56127181 : autoCloseChange added in change attributes

* updated version in READme file

* regenerated index.js file

---------

Co-authored-by: bhavani.velivala <bhavani.velivala@servicenow.com>
Co-authored-by: Bhavani Velivala (ServiceNow) <76525147+bhavani-velivala-sn@users.noreply.github.com>
Co-authored-by: roy-ca <roy.ca@servicenow.com>
Co-authored-by: sampath-methuku-servicenow <83061325+sampath-methuku-servicenow@users.noreply.github.com>
Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com>
Co-authored-by: suryateja.konduru <suryateja.konduru@servicenow.com>
Co-authored-by: surya-konduru-sn <89965037+surya-konduru-sn@users.noreply.github.com>

* DEF0783855: Fix encoded url for names during get change control API

* DEF0783855: add error logging for failed change creation requests

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855:Remove logs

---------

Co-authored-by: Nitin Parashar <nitin.parashar@servicenow.com>
Co-authored-by: bhavani.velivala <bhavani.velivala@servicenow.com>
Co-authored-by: Bhavani Velivala (ServiceNow) <76525147+bhavani-velivala-sn@users.noreply.github.com>
Co-authored-by: roy-ca <roy.ca@servicenow.com>
Co-authored-by: sampath-methuku-servicenow <83061325+sampath-methuku-servicenow@users.noreply.github.com>
Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com>
Co-authored-by: suryateja.konduru <suryateja.konduru@servicenow.com>
Co-authored-by: surya-konduru-sn <89965037+surya-konduru-sn@users.noreply.github.com>
Co-authored-by: ankur-jain1-snow <ankur.jain1@servicenow.com>
Co-authored-by: vivek.nalubandu <vivek.nalubandu@servicenow.com>
@maheshganjiSnc maheshganjiSnc changed the base branch from dev to scratch/dev April 23, 2026 09:24
@maheshganjiSnc maheshganjiSnc changed the base branch from scratch/dev to dev April 23, 2026 09:25
Comment thread src/lib/do-fetch.js
@arnabsn

arnabsn commented Apr 27, 2026

Copy link
Copy Markdown
Collaborator

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

@maheshganjiSnc maheshganjiSnc merged commit 9def52f 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. (#66)

* 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

* Sync the Dev Branch with the Main Branch (#29)

* change version to 1.35.2

* Update README.md

* STRY55387839:Adding support for token authentication in changeaction

* STRY55387839:Updating README.md file and adding sample workflow script

* STRY55387839:Updated node version to node16

* STRY55387839:Modifying workflow file

* defect fixes

* defect fixes

* fixes

* STRY55377568: Add logs in case of auto-approval/rejection

* Deployment Gate changes

* change status poll issue fix

* defect fixes

* updated version to v2.0.0

* updated version to v2.0.0

* fixed syntax issue in src/lib/create-change.js

* added new index.js file

* STRY56127181 : As per comments by customer as part of a case task

* STRY56127181 : Adding AutoCloseChange to Helper text in Readme file

* STRY56127181 : adding etc alone in description file

* STRY56127181 : autoCloseChange added in change attributes

* updated version in READme file

* regenerated index.js file

---------

Co-authored-by: bhavani.velivala <bhavani.velivala@servicenow.com>
Co-authored-by: Bhavani Velivala (ServiceNow) <76525147+bhavani-velivala-sn@users.noreply.github.com>
Co-authored-by: roy-ca <roy.ca@servicenow.com>
Co-authored-by: sampath-methuku-servicenow <83061325+sampath-methuku-servicenow@users.noreply.github.com>
Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com>
Co-authored-by: suryateja.konduru <suryateja.konduru@servicenow.com>
Co-authored-by: surya-konduru-sn <89965037+surya-konduru-sn@users.noreply.github.com>

* DEF0783855: Fix encoded url for names during get change control API

* DEF0783855: add error logging for failed change creation requests

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855:Remove logs

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

* STRY63145083: DevOps 6.3- GitHub Custom tasks Release (#63)

* 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

* Sync the Dev Branch with the Main Branch (#29)

* change version to 1.35.2

* Update README.md

* STRY55387839:Adding support for token authentication in changeaction

* STRY55387839:Updating README.md file and adding sample workflow script

* STRY55387839:Updated node version to node16

* STRY55387839:Modifying workflow file

* defect fixes

* defect fixes

* fixes

* STRY55377568: Add logs in case of auto-approval/rejection

* Deployment Gate changes

* change status poll issue fix

* defect fixes

* updated version to v2.0.0

* updated version to v2.0.0

* fixed syntax issue in src/lib/create-change.js

* added new index.js file

* STRY56127181 : As per comments by customer as part of a case task

* STRY56127181 : Adding AutoCloseChange to Helper text in Readme file

* STRY56127181 : adding etc alone in description file

* STRY56127181 : autoCloseChange added in change attributes

* updated version in READme file

* regenerated index.js file

---------

Co-authored-by: bhavani.velivala <bhavani.velivala@servicenow.com>
Co-authored-by: Bhavani Velivala (ServiceNow) <76525147+bhavani-velivala-sn@users.noreply.github.com>
Co-authored-by: roy-ca <roy.ca@servicenow.com>
Co-authored-by: sampath-methuku-servicenow <83061325+sampath-methuku-servicenow@users.noreply.github.com>
Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com>
Co-authored-by: suryateja.konduru <suryateja.konduru@servicenow.com>
Co-authored-by: surya-konduru-sn <89965037+surya-konduru-sn@users.noreply.github.com>

* DEF0783855: Fix encoded url for names during get change control API

* DEF0783855: add error logging for failed change creation requests

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855: Adding logs

* DEF0783855:Remove logs

---------

Co-authored-by: Nitin Parashar <nitin.parashar@servicenow.com>
Co-authored-by: bhavani.velivala <bhavani.velivala@servicenow.com>
Co-authored-by: Bhavani Velivala (ServiceNow) <76525147+bhavani-velivala-sn@users.noreply.github.com>
Co-authored-by: roy-ca <roy.ca@servicenow.com>
Co-authored-by: sampath-methuku-servicenow <83061325+sampath-methuku-servicenow@users.noreply.github.com>
Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com>
Co-authored-by: suryateja.konduru <suryateja.konduru@servicenow.com>
Co-authored-by: surya-konduru-sn <89965037+surya-konduru-sn@users.noreply.github.com>
Co-authored-by: ankur-jain1-snow <ankur.jain1@servicenow.com>
Co-authored-by: vivek.nalubandu <vivek.nalubandu@servicenow.com>

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

* STRY63281042: Fix typo in runs-on (ubutun-latest → ubuntu-latest)

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

---------

Co-authored-by: Nitin Parashar <nitin.parashar@servicenow.com>
Co-authored-by: bhavani.velivala <bhavani.velivala@servicenow.com>
Co-authored-by: Bhavani Velivala (ServiceNow) <76525147+bhavani-velivala-sn@users.noreply.github.com>
Co-authored-by: roy-ca <roy.ca@servicenow.com>
Co-authored-by: sampath-methuku-servicenow <83061325+sampath-methuku-servicenow@users.noreply.github.com>
Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com>
Co-authored-by: suryateja.konduru <suryateja.konduru@servicenow.com>
Co-authored-by: surya-konduru-sn <89965037+surya-konduru-sn@users.noreply.github.com>
Co-authored-by: ankur-jain1-snow <ankur.jain1@servicenow.com>
Co-authored-by: vivek.nalubandu <vivek.nalubandu@servicenow.com>
Co-authored-by: Cascade Bot <cascade@example.com>

* Update broken ServiceNow docs URL to latest release-independent URL

---------

Co-authored-by: Nitin Parashar <nitin.parashar@servicenow.com>
Co-authored-by: bhavani.velivala <bhavani.velivala@servicenow.com>
Co-authored-by: Bhavani Velivala (ServiceNow) <76525147+bhavani-velivala-sn@users.noreply.github.com>
Co-authored-by: roy-ca <roy.ca@servicenow.com>
Co-authored-by: sampath-methuku-servicenow <83061325+sampath-methuku-servicenow@users.noreply.github.com>
Co-authored-by: sampath.methuku <sampath.methuku@servicenow.com>
Co-authored-by: suryateja.konduru <suryateja.konduru@servicenow.com>
Co-authored-by: surya-konduru-sn <89965037+surya-konduru-sn@users.noreply.github.com>
Co-authored-by: ankur-jain1-snow <ankur.jain1@servicenow.com>
Co-authored-by: vivek.nalubandu <vivek.nalubandu@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