I’m setting up sonarcloud with the circleci integration. Now, running the checks on a branch called sonarcloud. I get this error:
Error during SonarScanner execution
ERROR: Could not find a default branch for project with key 'xxx'. Make sure project exists.
I copied and pasted sonar-project.properties from the setup guide on sonarcloud.io and double checked that the key is in fact the correct project id.
The project has a default branch called main
that doesn’t have a sonar-project.properties
configuration file yet (because this is the change that will add that file).