Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check the evolution of the dotnet-sonarscanner tool version 6.0.0 and update our GitHub Actions workflow once its issues are fixed. #23

Closed
rliberoff opened this issue Dec 4, 2023 · 0 comments · Fixed by #43
Labels
bug Something isn't working enhancement New feature or request

Comments

@rliberoff
Copy link
Member

rliberoff commented Dec 4, 2023

There is a new version of the dotnet-sonarscanner tool (version 6.0.0https://www.nuget.org/packages/dotnet-sonarscanner) which We use for code quality. However, this version is producing the following error:

Run dotnet-sonarscanner end /d:sonar.token=""
dotnet-sonarscanner end /d:sonar.token="
"
shell: /usr/bin/bash -e {0}
env:
BuildConfiguration: Debug
DOTNET_ROOT: /usr/share/dotnet
GITHUB_TOKEN: ***
SONAR_TOKEN: ***
SonarScanner for MSBuild 6.0
Using the .NET Core version of the Scanner for MSBuild
Post-processing started.
Calling the SonarScanner CLI...
Error: LinkageError occurred while loading main class org.sonarsource.scanner.cli.Main
java.lang.UnsupportedClassVersionError: org/sonarsource/scanner/cli/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
The SonarScanner did not complete successfully
17:44:40.424 Post-processing failed. Exit code: 1
Error: Process completed with exit code 1.

Therefore, We had to revert to the previous version 5.15.0 and set it fixed in the GitHub Actions workflow as follows:

  - name: Sonar - Install SonarCloud scanners
    run: dotnet tool install --global dotnet-sonarscanner --version 5.15.0

The idea is to check the evolution of this new version 6, and once the issue is fixed, update our GitHub Actions workflow accordingly.

Error image:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant