Upgrade GitHub Actions to Node.js 24-compatible versions#67
Merged
304NotModified merged 2 commits intomainfrom Apr 7, 2026
Merged
Upgrade GitHub Actions to Node.js 24-compatible versions#67304NotModified merged 2 commits intomainfrom
304NotModified merged 2 commits intomainfrom
Conversation
Agent-Logs-Url: https://github.com/304NotModified/SLNX-validator/sessions/2730fc6e-cede-4b27-ab9e-e070521987eb Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update actions versions for Node.js 24 support
Upgrade GitHub Actions to Node.js 24-compatible versions
Apr 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
actions/checkout@v4andactions/setup-dotnet@v4run on Node.js 20, which is deprecated on GitHub Actions runners (removed September 16, 2026).Changes
actions/checkout:v4→v6(v6.0.2, Node.js 24)actions/setup-dotnet:v4→v5(v5.2.0, Node.js 24)Applied to both
.github/workflows/build.ymland.github/workflows/sonarcloud.yml.Original prompt
Problem
The SonarCloud warning reports that
actions/checkout@v4andactions/setup-dotnet@v4are running on Node.js 20, which is deprecated and will be removed from GitHub Actions runners on September 16th, 2026. Node.js 24 will become the default on June 2nd, 2026.Files to Update
.github/workflows/sonarcloud.ymluses: actions/checkout@v4→ update toactions/checkout@v4latest patch that supports Node.js 24, or pin to a newer version (e.g.,actions/checkout@v4.2.2or higher that uses Node.js 20+)uses: actions/setup-dotnet@v4→ update to latest version supporting Node.js 24.github/workflows/build.ymluses: actions/checkout@v4→ update to latest version supporting Node.js 24uses: actions/setup-dotnet@v4→ update to latest version supporting Node.js 24Fix
Check the latest releases of these actions on GitHub to find the versions that support Node.js 24:
actions/checkout: Check https://github.com/actions/checkout/releases for the latest version that uses Node.js 24 (likelyv4with a recent patch, orv5if available)actions/setup-dotnet: Check https://github.com/actions/setup-dotnet/releases for the latest version that uses Node.js 24 (likelyv4with a recent patch, orv5if available)Update both workflow files to use the latest versions of
actions/checkoutandactions/setup-dotnetthat support Node.js 24.Also consider adding
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=trueas an environment variable at the workflow level if the actions don't yet have a Node.js 24 version available.Current workflow files content:
sonarcloud.yml (BlobSha:
381a934a68b3b967cc6f4ebd13ed56d61d750d75):build.yml (BlobSha:
86db52043e33c8b3af55212da4eee1b7b29e6d93):