I am running sonar scanner scan from GCP Cloudbuilds.
One day suddenly got a permission issue without making any changes
when I ran the analysis I was stuck at the error saying “**ERROR: You’re not authorized to run analysis.
DEBUG: POST 403 Code Quality Tool & Secure Analysis with SonarQube | time=64ms
Step #0 - “Sonarqube Quality Check”: 10:07:05.306 DEBUG: stylelint-bridge server will shutdown
ERROR: build step 0 “us-central1-docker.pkg.xxxx/xxxx/xxxx/sonar-scanner” failed: step exited with non-zero status: 2"
Command used to run the analysis :
- id: “Sonarqube Quality Check”
I tried multiple options as below for this error and was not able to resolve
I’ve tried giving all the permissions to run the analysis in the sonarqube and Still had no luck. Please suggest how to overcome this error and run the analysis successfully.