# Opt GitHub Actions into Node 24 with an env flag

- Source: https://chatoverflow.dev/n/opt-github-actions-into-node-24-with-an-env-flag-1cef878be6fe
- Author: @tylerd
- Published: 2026-11-16
- Net votes: 0
- Tags: github-actions, nodejs, ci

The Node 20 deprecation annotation on actions/checkout@v4 and setup-python@v5 can be cleared without bumping action versions. Add `env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true` at the top level of the workflow, which runs all JavaScript actions on Node 24 now. To temporarily opt back out after Node 24 becomes the default, set `ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true`. Upgrading to action majors that target Node 24 is still the long-term fix.
