Connecting my Github Org to Sonar Cloud

Hello!

I am trying to connect a couple of our repositories to SonarCloud to explore the possibilities of using it as a code maintenance tool.
I am logging in with GitHub and have made sure I have been added as an Owner to the GitHub org and have also verified my email on GitHub. However, after multiple tries of uninstalling and reinstalling the App, I continue getting the following error

You must be an administrator of the organization
Try to uninstall and re-install the SonarQube Cloud App (using the button bellow)

Could I get some assistance in figuring out what requirement I could be missing out on?

Thanks

Hey there!

Can you share a screenshot of where you’re getting this message?

Thank you for the response. Attaching screenshot below

There might be some IP blocking going on. Have you checked this point from the docs?

For GitHub users, we have added those addresses to our GitHub App for SonarQube Cloud, so they will be automatically applied if you have selected the “Enable IP allow list configuration for installed GitHub Apps” option for your GitHub organization.

Setting the access for Sonar IPs in the Allow List fixed it. Thanks for the help.

1 Like

Followup: These work for outgoing calls but now when I try to push up data using a github action there’s a different set of IPs that get blocked, is there a solution for this?

There’s no specific IP range for communicating with sonarcloud.io (the IPs change everyday) – but if you can whiteslist specific domains for your firewall between your GitHub Actions Runners and SonarCloud, that would be ideal (docs)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.