The issue is that there should only be one branch called “main” in this repo, which is what bitbucket is showing, that passed like expected, but SonarCloud has set “master” as the main branch (will send screenshots for examples)
I noticed that these seems to be no option of deleting and renaming branches in the UI, so I used API requests. Problem is that deleting the main branch just didn’t seem to work. Here is the command I used for listing the branches in that repository, which worked as expected.