How to enable Prod Branch Analysis

For automatic analysis, it does not get triggered (use prod branch instead of main).
Under Main Branch, I see the following message:

“prod” branch has not been analyzed yet and you have multiple branches already. It looks like it is not your Main Branch, check your configuration.

what does this error indicate. ? How can I enable the prod branch instead of main for automatic analsyis?

Hi,

Is prod marked as the default branch in your repository? Per the docs, automatic analysis analyzes the default branch. If you need something else, you should set up CI-based analysis.

 
HTH,
Ann

yes, the Prod is marked as the default branch in the repository.

Hi,

Do multiple branches show up in SonarQube Cloud? Because automatic analysis only analyzes the main branch, so if you’re seeing other branches in the UI, then you’re not using automatic analysis.

 
Ann

No, I just see one branch on SQ Cloud.

Hi,

Just to be sure, do you have a branch named main?

And to verify (I believe you, but I’m trying to get the
ducks in a row) could you provide a screenshot - redacted as necessary - from the Branches page in GitHub showing prod as the Default branch? E.G.

 
Thx,
Ann

here you go !

1 Like

Hi,

Thanks for the screenshot!

Do you also have a non-default branch named main?

 
Thx,
Ann

hello
yes, it exists in repo. but we do not use that.

Hi,

Thanks for that confirmation. I’ve flagged this for the team.

 
Ann

Hi,

It looks like this has already been addressed in your other thread.

 
Ann