I am trying to run the code analysis using sonar cloud.
when i run the analysis i’m stuck at the error saying “ERROR: You’re not authorized to run analysis. Please contact the project administrator.” ,
Seems like the analysis report is generated and when it’s trying to upload the analysis report to sonar cloud the execution is getting failed with the error.
Please suggest how to overcome this error and run the analysis successfully.
Command used to run the analysis : sonar-scanner -X -Dsonar.host.url=https://sonarcloud.io/ -Dsonar.projectKey=ajaykumar0794_Sonar-Scanning-Examples
I tried multiple options as below for this error and not able to resolve.
I’ve tried added sonar.properties file in my repository with the below details, still getting the same error.
I’ve tried giving all the permissions to run the analysis in sonar cloud(Organisation-Adminstration-Project Management,Permissions) and in my Azure repository too. Still no luck.