Hey Robert,
I guess this thread helps for your issue " How to change the main branch in SonarQube? - #8 by trexx00 ".