Примечание.
GitHub Code Quality в настоящее время находится в public preview и может быть изменен. Во время public preview, Code Quality не будут оплачиваться, хотя Code Quality сканирование займет GitHub Actions минут.
Prerequisites
- 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 a repository
-
На GitHubперейдите на главную страницу репозитория.
-
Под именем репозитория щелкните Settings. Если вкладка "Параметры" не отображается, выберите раскрывающееся меню и нажмите кнопку "Параметры".

-
In the sidebar, under "Security", click Качество кода to display the "Качество кода" page.
-
Click Enable code quality.
Примечание.
If Enable code quality is missing from this view, your enterprise owner has disabled the use of Code Security and Code Quality for your organization. See Разрешение использования GitHub 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 Использование средств выполнения, размещенных в GitHub and Использование меток с самостоятельно размещенными средствами выполнения.
-
Click Save changes to save your configuration for Code Quality.
Совет
If your organization has configured caching of private registries, these will be available for code quality analysis to use to resolve dependencies. See Предоставление доступа к частным реестрам функций безопасности.
Next steps
- Learn about the code quality backlog for your repository. See Interpreting the code quality results for your repository.
- Find and fix code quality issues before they reach your default branch. See Fixing code quality findings before merging your pull request.