We’re using github actions with a repo that at one time had the default branch called master but it’s been called main for years now but this message won’t go away and I cannot seem to get main to be recognised as the default:
“master” branch has not been analyzed yet and you have multiple branches already. It looks like it is not your Main Branch, check your configuration.
I have tried setting the sonar.branch.name = main but this makes no difference. I’ve also edited the regex to pick up main as a long lived branch to no avail.
Hey @endakelly, it’s currently not possible to manually change the Main Branch on SonarQube Cloud, although there is a workaround: delete the main branch on SonarQube Cloud if it exists, rename the master branch to main, and re-run your CI job for the main branch. Note that this will lose the analysis history of your old main branch on SonarQube Cloud.
I have another issue which I’d like to discuss with support over DM if that’s possible please.
If you don’t have a paid support plan, then I’m afraid it’s not going to be possible. I suggest you try asking here on Community about it. Please try to share as much as possible via the public post, and if there are a few sensitive details (IDs, project names…) that you don’t want to share publicly and that we deem relevant to be able to answer, we may ask you to share those over DM.