Im attempting to integrate a SonarQube instance (9.5) with GitHub. SonarQube instance is hosted on our intranet, while GitHub is cloud-hosted. When trying to authenticate and link repositories from GitHub to SonarQube, I encounter the following error:
“Be careful! The redirect_uri is not associated with this application”
Current Setup:
- SonarQube is hosted on an internal network (intranet) and is not accessible from outside our environment.
- GitHub is cloud-hosted solution (GitHub.com)
- I have created a GitHub App and provided the following:
Homepage URL: Sonar URL
Callback URL : Sonar URL/oauth2/callback/github - I have configured the GitHub App Client ID and Secrete in SonarQube.
Has anyone else encountered a similar issue, and there are any best practices for integrating an intranet SonarQube instance with cloud-hosted GitHub?
Any guidance or suggestions would be greatly appreciated.