I ran in GitHub actions and it ran successfully on my main branch, but in SonrQube cloud I only see an overview for the master branch and no report - is there something I need to change?
Hi,
Welcome to the community!
Are master
and main
two different branches for you? And which is the project’s “main” / primary branch?
Ann
main is my only branch - GitHub only created main when I created it. It seems that SonarQube assumes a masterbranch - is there a way to change that?
Hi,
I think SonarQube for Cloud still defaults to master
.
What you can do is rename a branch. So analyze main
and make sure that the branch name parameter is empty. It will be taking as the main project branch (master
). You can then rename it to main
. This will mean deleting your current main
branch and starting over, but I have the sense that you’re just getting started, so hopefully you won’t lose much.
Ann