Request to Change Authentication from Bitbucket to GitHub

Hello,

We are currently migrating our repositories from Bitbucket to GitHub. Could you please assist us in updating our Sonar authentication to use GitHub instead of Bitbucket?
Please let us know what information you need from us to complete this configuration change.
Thank you for your assistance.

Best regards,
Alex

Hello,

While you can’t change how a specific user authenticates, you can update your organization’s binding to use a different DevOps Platform for authentication going forward.

You can find detailed instructions in the official documentation: Changing Organization Binding.

Hello Colin

Thank you for the answer. If we rebind our org from Bitbucket to GitHub, will our existing project analysis history and issues (including branches/PRs) remain intact? Do we need to keep the same project keys or take any steps to ensure nothing is lost?

Kind Regards,

Alex

If you change the organization binding (in specific circumstances where you can, such as moving away from platforms like GitHub or Bitbucket to another service—not from Azure DevOps or GitLab), you will retain your history.

Hello Colin

We can’t bind the organization with a GitHub profile and get “Your organization is already bound to the SonarQube Cloud organization. Try again and choose a different organization.”
We have the same organization name on Bitbucket and GitHub.

Please advise how we can fix this error

Screen from the Bitbucket account

Kind Regards,
Alex

If your GitHub organization is connected to a SonarQube Cloud organization, the SonarQube Cloud GitHub App may already be installed on your GitHub org. To resolve issues or change this setup, uninstall the SonarQube application from your GitHub organization.

You can do this by visiting: https://github.com/organizations/ORG/settings/installations and removing the application from the listed apps. That should free up the org for binding.

Hello Colin

Thank you, we successfully bound the organisation to GitHub.

Unfortunately, we can’t find how to rebind the projects to GitHub. The UI shows the project is on Bitbucket, but it is correctly linked to GitHub.

Is it possible to change the projects to GitHub? Some PR features don’t work correctly because they are trying to use the Bitbucket structure

Kind Regards,

Alex

Hi Alex,

Your screenshot seems to indicate that the project setting show the SonarQube Cloud project is bound to the correct project in GitHub. Is that correct?

Is the only problem that icon at the upper left, or are other things, such as PR decoration, not functioning correctly?

 
Thx,
Ann

Hello Ann,

You are right, the project is bound to the correct repo at GitHub, and PR decoration doesn’t work. PR view shows old PRs; branches view shows only the main branch.

Please let me know if you need more info

Kind Regards,

Alex

Hi Alex,

Thanks for confirming. I’m not sure where to go from here, so I’ve flagged this for more expert eyes.

 
Ann

Hi @Alex_K1,

It seems like you are in the same situation as this post.
Please follow these steps: