Start Free
Latest | AI capabilities | Autodetect AI code

Autodetecting AI code in your project

On this page

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 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 Setting up AI Code Autodetection.

If you're a GitHub Admin and want more information about the required permission levels in GitHub, see Setting permissions for AI Autodetection.


Was this page helpful?

© 2008-2025 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARQUBE, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License