Integration issue: SonarQube Intranet Instance and GitHub Cloud

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:

  1. SonarQube is hosted on an internal network (intranet) and is not accessible from outside our environment.
  2. GitHub is cloud-hosted solution (GitHub.com)
  3. I have created a GitHub App and provided the following:
    Homepage URL: Sonar URL
    Callback URL : Sonar URL/oauth2/callback/github
  4. 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.

Hey there.

  1. Have you configured the Server Base URL for your SonarQube instance (global Administration > General > Server Base URL?
  2. Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

9.5 > 9.9.7 → 10.7 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.