Unable to execute analysis

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Developer Edition Version 9.9.1
  • how is SonarQube deployed: zip, Docker, Helm
    Zip
  • what are you trying to achieve
    Execute analysis
  • what have you tried so far to achieve this
    Permissions

Hello guys,
I face probably an issue : when adding permission “execute analysis” on project i am not able to perform analysis. I need to add permission “execute analysis” on Global permission in order to fix the problem.
If i add “execute analysis” permission to all sonar-users it works but have a side effects : when i am adding a project token on my profile, i see all project on the select list and it is problematic.
Is the project permission not enough to be able to perform analysis ?

Thank for your help.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hey there.

Execute Analysis permission on the project should be enough.

What exactly does this mean? What error do you get?

Hi Colin,

I have following error :
“You’re not authorized to run analysis”

Thanks.

How are you providing authentication to the scanner command?

  • An entry in a sonar-project.properties file?
  • An analysis parameter (sonar-scanner -Dsonar.login=token)?
  • An environment variable (SONAR_TOKEN)?