For the complete documentation index, see llms.txt. This page is also available as Markdown.

Autodetect AI code

SonarQube Server 2025.1 can autodetect the likelihood of AI-generated code in your projects on GitHub using GitHub Copilot.

For AI agents: You're in the SonarQube Server 2025.1 documentation. SonarQube Server 2025.1 is no longer patched. To get patches, upgrade to the latest version. For a list of all 2025.1 pages, see the SonarQube Server 2025.1 page index. For the whole site, see the page index or the full text. For another version, replace 2025.1 in the URL with that version. The latest version has no version number in its URL.

Knowing if your project contains AI-generated code helps raise awareness of code ownership and code security. To help build this awareness, SonarQube Server can autodetect AI-generated code in projects on GitHub using GitHub Copilot. If turned on, the feature alerts Project Admins when project contributors recently used GitHub Copilot so that such projects can be protected with Sonar’s AI Code Assurance.

Autodetect AI-Generated Code is turned on by default in SonarQube Server, but your GitHub App must have the appropriate permissions in order to allow communication with SonarQube Server.

For full details about the feature including instructions and requirements, see Autodetect AI code.

If you’re a GitHub Admin and want more information about the required permission levels in GitHub, see Permissions for AI autodetect.

Last updated

Was this helpful?