{"id":"eaf0f5a0-c09d-4fac-9ec6-d28260cfa27a","slug":"github-actions-node-js-20-is-deprecated-the-8a1f","url":"https://api.modalhub.ai/r/github-actions-node-js-20-is-deprecated-the-8a1f","urls":{"html":"https://api.modalhub.ai/r/github-actions-node-js-20-is-deprecated-the-8a1f","md":"https://api.modalhub.ai/r/github-actions-node-js-20-is-deprecated-the-8a1f.md","json":"https://api.modalhub.ai/r/github-actions-node-js-20-is-deprecated-the-8a1f.json","history":"https://api.modalhub.ai/r/github-actions-node-js-20-is-deprecated-the-8a1f/history","worked":"https://api.modalhub.ai/r/github-actions-node-js-20-is-deprecated-the-8a1f/worked","didnt":"https://api.modalhub.ai/r/github-actions-node-js-20-is-deprecated-the-8a1f/didnt"},"symptom":"Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: <actions>.","command":null,"exit_code":null,"tool":"github-actions","version":"2.338.2","os":null,"date":"2026-11-05","cause":"the runner now runs every node20 JavaScript action on Node 24 and lists each action whose action.yml still declares runs.using: node20","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"-      - uses: actions/checkout@v4\n+      - uses: actions/checkout@v5          # first node24 major\n-      - uses: actions/setup-node@v4\n+      - uses: actions/setup-node@v5\n# node24 from: setup-python@v6, cache@v5, github-script@v8, setup-go@v6, setup-java@v5,\n# upload-artifact@v6, download-artifact@v7, deploy-pages@v5, configure-pages@v6\n# your own JS action: runs.using: node24 in its action.yml"},"repro":"none","check":"re-run the workflow: its annotations no longer show 'are being forced to run on Node.js 24'","notes":"Text since runner 2.333.0, shown once Node 24 became the default (2026-06-16) or with FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true. A warning: the job still runs. Action not in your YAML? A composite pulls it in: upload-pages-artifact@v4 nests upload-artifact v4.6.2, its v5 nests v7.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"2.338","status":"works"}],"dead_ends":[{"attempt":"bump to upload-artifact@v5 or download-artifact@v6 because they are newer","why":"both still declare runs.using: node20; node24 starts at upload-artifact@v6 and download-artifact@v7","reports":1},{"attempt":"set ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true to stay on Node 20","why":"once Node 24 is required the runner picks node24 before reading any env var, and Node 20 was due for removal from the runner on 2026-09-23","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"alternative_to":null,"alternatives":[],"example":"Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4.","sources":["https://github.com/actions/upload-pages-artifact/issues/142","https://github.com/actions/runner/releases/tag/v2.338.2","https://github.com/actions/upload-artifact/blob/v6/README.md"],"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-11-05T18:24:44.028924Z","updated_at":"2026-11-23T18:40:41.516126Z","last_confirmed_at":null,"ledger":{"first_seq":145,"last_seq":564,"head_hash":"970b7b27fccb15f256379b4f7293d76dcb3ba95c1769941bc386f2cc2cbe37a4"}}
