I am using the Azure DevOps task SonarQubePublish@7
to publish the results of an analysis of my .NET Framework solution to Server 24.12.0.100206. When the task executes, it is reporting a 403 Forbidden
error, but the analysis still seems to be showing up in the project overview.
The logs from Azure DevOps are:
Starting: Publish SonarQube analysis
==============================================================================
Task : Publish Quality Gate Result
Description : Publish SonarQube Server's Quality Gate result on the Azure DevOps build result, to be used after the actual analysis.
Version : 7.2.0
Author : sonarsource
Help : [More Information](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scanners/sonarqube-extension-for-azure-devops/)
==============================================================================
[INFO] SonarQube Server: Server version: 24.12.0.100206
[INFO] SonarQube Server: Task f1519187-2444-4571-8743-517138d23962 completed
[INFO] SonarQube Server: Analysis succeeded with warning: Multi-Language analysis is enabled. If this was not intended and you have issues such as hitting your LOC limit or analyzing unwanted files, please set "/d:sonar.scanner.scanAll=false" in the begin step.
[INFO] SonarQube Server: Error fetching component measures: API GET '/api/measures/component' failed. Error message: Request failed with status code 403.
[INFO] SonarQube Server: Overall Quality Gate status: ok
Finishing: Publish SonarQube analysis
The successfully-published results in SonarQube are show below:
Since 403 is a permissions error, I thought it might be a project key issue, so I created a new key and used that, but it makes no difference.