Connected to SonarQube : Enterprise Edition Version 9.6.1 (build 59531)
Running in github actions the dotnet-sonarscanner (5.13.0) tool fails to log into sonar with a token, but the same token works with sonarqube-scan-action.
Error Message:
You can invoke the tool using the following command: dotnet-sonarscanner #step:10:35)Tool ‘dotnet-sonarscanner’ (version ‘5.13.0’) was successfully installed. #step:10:36)SonarScanner for MSBuild 5.13 #step:10:37)Using the .NET Core version of the Scanner for MSBuild #step:10:38)Pre-processing started. #step:10:39)Preparing working directories… #step:10:40)16:51:34.818 Updating build integration targets… #step:10:41)16:51:35.374 Unauthorized: Access is denied due to invalid credentials. Please check the authentication parameters. #step:10:42)16:51:35.391 Pre-processing failed. Exit code: 1 #step:10:43)
How have you configured your GitHub Actions? Feel free to share the YML here.
Make sure you upgrade to SonarQube v9.9 LTS soon, not only to benefit from our Best LTS Ever™, but because soon we will systematically ask users to upgrade when they ask questions about earlier versions of SonarQube, which are now considered unsupported.
Task : Prepare Analysis Configuration
Description : Prepare SonarQube analysis configuration
Version : 5.15.0
Author : sonarsource
Help : Version: 5.15.0. More Information
C:_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.15.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe begin /k:*****.API.****
SonarScanner for MSBuild 5.13
Using the .NET Framework version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories…
14:30:33.588 Updating build integration targets…
##[error]14:30:33.714 Unauthorized: Access is denied due to invalid credentials. Please check the authentication parameters.
14:30:33.714 Unauthorized: Access is denied due to invalid credentials. Please check the authentication parameters.
##[error]14:30:33.745 Pre-processing failed. Exit code: 1
14:30:33.745 Pre-processing failed. Exit code: 1
##[error]The process ‘C:_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.15.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe’ failed with exit code 1
Finishing: Prepare analysis on SonarQube