SonarCloud analysis fails: Java 17 no longer supported - #1141
Merged
Conversation
npx sonar-scanner resolves the legacy, unmaintained sonar-scanner@3.1.0 npm package, which runs analysis with whatever `java` is first on the runner's PATH (Java 17 on ubuntu-24.04). SonarQube Cloud dropped support for Java 17 analysis, so every run now fails with: ERROR: The version of Java (17) used to run this analysis is deprecated, and SonarQube Cloud no longer supports it. Add actions/setup-java (Temurin 21) before the scanner step so it picks up a supported JRE from PATH/JAVA_HOME. Closes #1140 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
jesusmpc
approved these changes
Aug 4, 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.



What
Adds an
actions/setup-javastep (Temurin 21) before the SonarCloud scanner runs in.github/workflows/code-npm_node-sonarcloud-analysis.yml.Why
Every PR's
SonarCloud / Unit Testscheck currently fails with:npx sonar-scanner(unpinned) resolves to the legacy, unmaintainedsonar-scanner@3.1.0npm package, which doesn't auto-provision a JRE — it runs analysis with whateverjavais first on the runner'sPATH, which is Java 17 onubuntu-24.04. SonarQube Cloud dropped support for Java 17 analysis.Closes #1140