I have a problem when making a PR to GitHub repo, the SonarCloud analysis is not executed and I got an exception in GitHub actions logs:
[DEBUG] 21:41:24.326 GET 403 https://sonarcloud.io/batch/project.protobuf?key=amrsamii_test-sonar&branch=master | time=109ms
[WARNING] 21:41:24.330 Unable to analyse file ‘pom.xml’.
java.lang.IllegalStateException: You’re not authorized to run analysis. Please contact the project administrator.
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:18.104.22.1686:sonar (default-cli) on project test-sonar: null: MojoExecutionException: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:22.214.171.1246:sonar (default-cli) on project test-sonar: null
I have to repos: one that is configured with SonarCloud project. The other is the one that I have made PR to it, it is not hosted under my name. I tried to to give it permission to execute analysis but there is still an error.