Main Branch not getting computed in SonarCloud


I have been reading a lot of threads in the community but still not able to get my main branch computed.
Sandbox is the default branch for me in github and it keeps giving me

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

Also the branch never gets computed even though I have set up a date fro new code analysis. We use GitHub actions for sonar analysis. Multiple PRs and code changes have not solved the issue … would really appreciate some help on this

Hello @oindrillasen ,

Welcome to the community!

Could you provide us with your GitHub Actions workflow where SonarCloud is integrated? I am happy to start a private thread if you don’t want to post it publicly.

That will be awesome … thanks a lot @Martin_Bednorz

Let me know how can I communicate in a private thread

We have a similar issue at the Federal Agency that I am working for. We use Azure Devops and a simple Pull Request into our Main Branch (master) only shows analysis for the short lived branch (feature), but not master. What does it take to get this product to analyze the main branch?? Here is my prepare task for sonar in my azure-pipelines.yml

  - task: SonarCloudPrepare@1
    displayName: SonarCloud Prepare
      SonarCloud: 'macro-sonar-connection'
      organization: 'macro-pfa-org-key'
      scannerMode: 'CLI'
      configMode: 'manual'
      cliProjectKey: 'macro-pfa_pfa'
      cliProjectName: 'pfa'

Hey @draughna

Instead of bumping an old thread, I’d encourage you to create your own thread and include your full Azure Pipelines YML file.

I will close this thread.