Unable to run sonar-scanner in bitbucket pipeline to sonarcloud - Caused by: Could not find a default branch to fall back on

Hey there.

If you have provisioned your SonarCloud project through the UI, you should not have to include any arguments like

-Dsonar.organization="org" -Dsonar.projectKey="key"

They are notably missing from the UI tutorial for analyzing with Bitbucket Pipelines :slight_smile:

Give this a try (a simpler config) and see if it resolves your issue.