Skip to main content

Enabling GitHub Code Quality

Use Code Quality to automatically catch, fix, and report on code quality issues in pull requests and on your default branch.

Who can use this feature?

Repository owners, organization owners, and users with the admin role

GitHub Team or GitHub Enterprise Cloud

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

  1. On GitHub, navigate to the main page of the repository.

  2. Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.
  3. In the sidebar, under "Security", click Code quality to display the "Code quality" page.

  4. Click Enable code quality.

  5. Review the information on the Code quality page:

  6. 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.

  1. On GitHub, navigate to the main page of the organization.

  2. Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of the tabs in an organization's profile. The "Settings" tab is outlined in dark orange.
  3. In the sidebar, under "Security", click Code quality.

  4. Next to "Enable Code Quality", use the toggle to enable Code Quality for all repositories.

Next steps