Setting up AI code autodetection with Github Enterprise Server

Hello, everyone.

I am trying to configure the AI Code Detection feature by following the documentation here:

But it’s not very clear in our case.

Context:

  • SonarQube Server 2025.4 (self-hosted in a local Kubernetes Cluster); Developer Plan
  • The source code for our applications is on a Github Enterprise Server (self-hosted)
  • SonarQube Server has been integrated with our internal Github Server and is working correctly (Administration > DevOps Platform Integrations > GitHub)
  • We also have a GitHub Cloud organization for various needs, including the Copilot Business tool.

I have the impression that for this to work, SonarQube must be integrated with both GitHub platforms (GitHub Enterprise Server for branch and pull request detection for example, and GitHub Cloud for access to Copilot).

Prerequisites (cf. doc):

  1. The Autodetect AI-Generated Code feature is enabled by default in SonarQube Server.
    → OK, no problem.
  2. Your GitHub organization with a Copilot subscription must be the organization you link to SonarQube Server.
    → SonarQube Server is integrated with our Self-Hosted GitHub Server. I cannot link it to our GitHub Cloud organization.
  3. If you are using SonarQube Server with GitHub Enterprise Server, a SonarQube administrator must configure an SCM account for each user with a Copilot Business subscription so that the users’ Copilot ID matches their GitHub Enterprise Server ID.
    → OK, done on some users for testing.
  4. A project administrator must enable access from your GitHub application.
    → Where? When integrating SonarQube with our GitHub Enterprise server (self-hosted), we selected the Read-only level for GitHub Copilot Business authorization, but I can’t see the connection between self-hosted and cloud.

Have I missed something?
Is it possible to enable the AI code autodetection feature in our case (GitHub Enterprise Server + GitHub Enterprise Cloud - Copilot Business - + SonarQube Developer) ?

Thanks

Fabrice

Hi Fabrice,

I don’t think yours is a situation we anticipated. It doesn’t look like you’ll be able to do this.

 
Ann

Thanks Ann.

Do you think it would work in an Enterprise plan, which allows integration with an unlimited number of DevOps platforms?

Fabrice

Hi Fabrice,

Yes, that would work.

 
Ann