Note
GitHub Code Quality is currently in public preview and will become generally available on July 20, 2026. During public preview, Code Quality will not be billed, although Code Quality scans will consume GitHub Actions minutes. From July 20, 2026, usage will incur charges. See GitHub Code Quality billing.
Prerequisites
- An enterprise owner must have allowed Code Quality in your enterprise. See Allowing use of GitHub Code Quality in your enterprise.
- GitHub Actions must be enabled because Code Quality uses actions to run each CodeQL analysis.
- To get the full benefit of the feature, your repository should include one of the languages supported for quality analysis by CodeQL. See Supported languages.
Enabling Code Quality for your repository
-
On GitHub, navigate to the main page of the repository.
-
Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

-
In the sidebar, under "Security", click Code quality to display the "Code quality" page.
-
Click Enable code quality.
-
Review the information on the Code quality page:
- Languages: If you want to disable CodeQL analysis for any of the languages, clear the associated check box.
- Runner type: If you want to use a different runner, choose Labeled runner and define the Runner label. See Using GitHub-hosted runners and Using labels with self-hosted runners.
-
Click Save changes to save your configuration for Code Quality.
Tip
If your organization has configured caching of private registries, these will be available for code quality analysis to use to resolve dependencies. See Giving security features access to private registries.
Enabling Code Quality for an organization
You can enable or disable Code Quality for all repositories in an organization at once.
-
On GitHub, navigate to the main page of the organization.
-
Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

-
In the sidebar, under "Security", click Code quality.
-
Next to "Enable Code Quality", use the toggle to enable Code Quality for all repositories.
Next steps
- For your repository: Explore your code quality findings and merge your first fix. See Quickstart for GitHub Code Quality.
- Add code coverage: Upload test coverage reports to see coverage results directly on pull requests. See Setting up code coverage for your repository.
- For your organization: Understand the code health of your repositories at a glance. See Exploring GitHub Code Quality results in your organization.