You're not authorized to run analysis. Please contact the project administrator

I set up Sonarcloud this morning and it was neat. Everything worked in the first try, except code coverage. I merged with other branches restarting builds and running the same pipe several times, each was a success.

Then to solve the coverage issue, I added up an extra option: javascript.lcov.reportPaths.

I got “You’re not authorized to run analysis. Please contact the project administrator.”

At first I thought that option was messed up (because I got it from Google) so I rolled back the script but the error persisted. Thinking that I might have had my token expired, I created a new token. Still I get the same error.

My script is here:, at line 161
The log is here:, at Sonarcloud Scan section.

Any lights?

1 Like


After some trial and error, I figured out that the error had nothing to do with authorization.

While the doc states that the path can be relative to the project root, I didn’t realize this root is what is defined by property sonar.sources.

My project is:


I had


I should’ve had


I believe that this is not true anymore. I am fighting the same problems but the Coverage files are picked up correctly I believe.