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.

누가 이 기능을 사용할 수 있나요?

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

GitHub Code Quality is available for:

  • Public repositories on GitHub.com
  • Organization-owned repositories on GitHub Team or GitHub Enterprise Cloud

참고 항목

GitHub Code Quality is currently in 공개 미리 보기 and subject to change. During 공개 미리 보기, Code Quality will not be billed, although Code Quality scans will consume GitHub Actions minutes.

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

  1. GitHub에서 리포지토리의 기본 페이지로 이동합니다.

  2. 리포지토리 이름 아래에서 Settings를 클릭합니다. "설정" 탭이 표시되지 않으면 드롭다운 메뉴를 선택한 다음 설정을 클릭합니다.

    탭을 보여 주는 리포지토리 헤더의 스크린샷. "설정" 탭이 진한 주황색 윤곽선으로 강조 표시됩니다.

  3. In the sidebar, under "Security", click Code quality to display the "Code quality" page.

  4. 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 Allowing use of GitHub Code Quality in your enterprise.

  5. Review the information on the Code quality page:

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