Skip to content

sonarscanner-dotnet: upgrade sonarscanner-dotnet JRE default to 21 following Sonarcloud analysis minimum requirement change - #236

Open
aahmed-dfe wants to merge 2 commits into
DFE-Digital:masterfrom
aahmed-dfe:aa/upgrade-sonar-jre-21
Open

sonarscanner-dotnet: upgrade sonarscanner-dotnet JRE default to 21 following Sonarcloud analysis minimum requirement change#236
aahmed-dfe wants to merge 2 commits into
DFE-Digital:masterfrom
aahmed-dfe:aa/upgrade-sonar-jre-21

Conversation

@aahmed-dfe

@aahmed-dfe aahmed-dfe commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Context

As per https://docs.sonarsource.com/sonarqube-cloud/analyzing-source-code/scanners/scanner-environment/general-requirements#java-21-requirement-for-scanner-runtime SonarCloud analysis now requires JRE 21 where the JRE is manually provisioned from 20th July 2026 (yesterday)

The default sonarscanner-dotnet action manually provisions the JRE

This was noted in #182 as a followup warning.

This now is causing analysis to fail where the java-version arg is not overriden to 21.

Checklist

  • I have performed a self-review of my code, including formatting and typos
  • I have cleaned the commit history
  • I have added the Devops label
  • I have attached the pull request to the trello card

Future

  • Look at autoprovisioning JRE as suggested in docs?

@aahmed-dfe aahmed-dfe changed the title [chore]: upgrade sonarscanner-dotnet Java runtime default to 21 as per sonarcloud requirements [chore]: upgrade sonarscanner-dotnet JRE default to 21 following Sonarcloud analysis minimum requirement change Jul 21, 2026
@aahmed-dfe aahmed-dfe changed the title [chore]: upgrade sonarscanner-dotnet JRE default to 21 following Sonarcloud analysis minimum requirement change sonarscanner-dotnet: upgrade sonarscanner-dotnet JRE default to 21 following Sonarcloud analysis minimum requirement change Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant