You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Node 20 deprecation warning fires even when FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 forces the action to run on Node 24 #4295
When FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true is set in a workflow's env: section, JavaScript actions with using: node20 are correctly upgraded to run on Node 24 at runtime — but the end-of-job deprecation annotation still fires with the misleading message:
The following actions are running on Node.js 20 and may not work as expected: some-action@v1
The action is not actually running on Node 20. The annotation text is inaccurate.
Root cause
In HandlerFactory.cs, the deprecation tracking happens beforeDetermineActionsNodeVersion is called:
// 1. Deprecation tracking — based on declared version, runs FIRSTif(nodeData.NodeVersion=="node20"){if(warnOnNode20)executionContext.Global.DeprecatedNode20Actions?.Add(actionName);// always added}// 2. Version upgrade check — runs SECOND, may upgrade to node24if(nodeData.NodeVersion=="node20"){var(nodeVersion, _)=NodeUtil.DetermineActionsNodeVersion(environment,...);nodeData.NodeVersion=finalNodeVersion;// could be "node24" if FORCE_ is set}
The action is added to DeprecatedNode20Actions based on its declared version (node20) before DetermineActionsNodeVersion has a chance to check the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 env var and upgrade the runtime to node24. The end-of-job warning then iterates over that list and claims the actions "are running on Node.js 20", even though they ran on Node 24.
Expected behavior
If FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true causes an action to run on Node 24, the end-of-job annotation should either:
Not fire at all for that action (preferred — the user has already opted in), or
Use accurate language like "declared for Node.js 20" rather than "running on Node.js 20"
Steps to reproduce
Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" at the workflow env: level
Use any action that declares using: node20 in its action.yml
Observe that the "Complete job" step still emits the Node 20 deprecation annotation
Suggested fix
Move the deprecation tracking to afterDetermineActionsNodeVersion resolves the final runtime version, so the warning only fires for actions that will actually execute on Node 20:
// Determine actual runtime version firstif(nodeData.NodeVersion=="node20"){var(nodeVersion, _)=NodeUtil.DetermineActionsNodeVersion(environment,...);nodeData.NodeVersion=finalNodeVersion;}// Only warn if the action is still going to run on node20if(nodeData.NodeVersion=="node20"){if(warnOnNode20)executionContext.Global.DeprecatedNode20Actions?.Add(actionName);}
Reacted by Mateusz A., Ben Dow, David Wolfe, Marcelo Barros, German Tebiev, Emmanuel AK, Christian Franzen, Sourabh Mehta, Nolan Gelinas, Mohammed Achraf AMERI and 2 more
I'm still seeing this behavior on the latest github-hosted runners. I set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true as an env in every workflow file but still get the warning message during the cleanup job:
Activity
salmanmkc commentedon Apr 10, 2026
Turns out I fixed this in this, didn't notice this issue was open before, hopefully it's all ok for you now!
get rid of warnings
Github actions using Node24 (#2428)
chore(ci): replace dorny/paths-filter with inline gh api path detection
ci: bump actions to v5 for native Node 24 support
nrgbistro commentedon Apr 28, 2026
I'm still seeing this behavior on the latest github-hosted runners. I set
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: trueas an env in every workflow file but still get the warning message during the cleanup job:eak-jsplc commentedon Apr 29, 2026
@nrgbistro It's a new (correct) warning
Old:
“Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected”
New:
“Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24”
salmanmkc commentedon Apr 29, 2026
Yeah that is the expected message now
ci: bump every action to its node 24-targeting major
build: add release-binaries and changelog recipes (#22)
ci: bump checkout/setup-node/cache to v5 (native Node 24) (#817)
ci(setup-rust): replace mozilla-actions/sccache-action with taiki-e/i…
feat(sandbox-native): runtime-mechanics baseline + un-#[ignore] fs-re…
CI: replace devcontainers/action with shell validation in validate.yaml
16 remaining items
socket-scan: drop the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 env var
socket-scan: drop the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 env var
socket-scan: drop the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 env var
add socket tier 1 reachability analysis (#38)
add socket tier 1 reachability analysis (#14)
add socket tier 1 reachability analysis (#402)
add socket tier 1 reachability analysis (#48)
add socket tier 1 reachability analysis (#5)
add socket tier 1 reachability analysis (#129)
add socket tier 1 reachability analysis (#230)
ci: pin JavaScript actions to the Node 24 runtime
Declare the node24 action runtime
ci: use our node24 fork of setup-zig
add socket tier 1 reachability analysis (stellar#550)
CI: bump JS actions to Node 24 majors