Base branch is not available for SonarQube while scanning
09:31 30 Jul 2026

I am using Bamboo for CI/CD. I am integrating a SonarQube scan into the pipeline for PRs. After the scan, the API for issues is not returning Author as blank.

On SonarQube, I am getting the following:

Could not find ref 'develop' in refs/heads, refs/remotes, refs/remotes/upstream or refs/remotes/origin. You may see unexpected issues and changes. Please make sure to fetch this ref before pull request analysis and refer to the documentation.

We are using the 'Source Code Checkout task' from Atlassian marketplace to checkout the repo. The repo is one of the linked repos and cloning is deep clone.

How to navigate it?

sonarqube bamboo