SonarScanner fails with error 'Browse' Permission in GitLab CI pipeline

Hi, I have use SonarQube v.9.6.1 for MSBuild 4.10 and running in the GitLab pipeline.
If we create Sonar_token for gitlab by manually way, the token is working, and we can successfully connected and scanned our project on SonarQube.
However, if we create the token by GitLab personal access token, THE TOKEN CAN’T WORK .

Even after we set the account of GitLab and SonarQube become Admin level, we still always get the error message :

WARNING: To analyze private projects make sure the scanner user has 'Browse' permission.
The remote server returned an error: (403) .
System.Net.WebException: The remote server returned an error: (403) .

Anyone has the suggestion will be grateful, thanks.

This problem had been solved, the reason is we set a wrong value on key parameter.

1 Like