Skip to main content

About GitHub Code Quality

Use GitHub Code Quality to flag code quality issues in pull requests and repository scans, apply Copilot-powered autofixes, and enforce standards with rulesets.

참고 항목

GitHub Code Quality은(는) 현재 공개 미리 보기에 있으며 변경될 수 있습니다. 공개 미리 보기에서 Code Quality은(는) 요금이 청구되지 않지만 Code Quality 스캔은 GitHub Actions 분을 소모합니다.

Overview

GitHub Code Quality helps you ensure your codebase is reliable, maintainable, and efficient. Whether you're building a new feature, reducing technical debt, or reporting on repository health, Code Quality provides actionable insights and automated fixes so you can improve and maintain the code health of your repository efficiently.

Key features and benefits

With Code Quality, you can:

  • Identify code quality risks and opportunities in pull requests and through repository scans.
  • Review clear explanations for findings and apply one-click Copilot-powered autofixes.
  • Use repository dashboards to track reliability and maintainability scores, identify areas needing attention, and prioritize remediation.
  • Set up rulesets for pull requests to enforce code quality standards and block changes that do not meet your criteria.
  • Easily assign remediation work to Copilot 코딩 에이전트, if you have a Copilot license.

Availability and usage costs

GitHub Code Quality is available for organization-owned repositories on GitHub Team and GitHub Enterprise Cloud plans.

GitHub Code Quality won't be billed during public preview. However, Code Quality scans will consume GitHub Actions minutes. See GitHub Code Quality 청구.

참고 항목

Supported languages

Code Quality performs rule-based analysis of the following languages using CodeQL:

  • C#
  • Go
  • Java
  • JavaScript
  • 파이썬
  • 루비
  • TypeScript

Code Quality also performs AI-powered analysis with results displayed separately on the "AI 결과" repository dashboard. Unlike the rule-based CodeQL analysis that scans the entire codebase and pull requests, this AI-powered analysis only examines files recently pushed to the default branch and may identify issues in languages beyond those listed above. For more information, see GitHub Code Quality의 책임 있는 사용.

Understanding where Code Quality findings appear after enablement

Once you enable Code Quality for a repository, you'll see CodeQL scans for:

  • Every new pull request opened against the default branch
  • All existing pull requests to the default branch when they are updated, triggering a new run of CI tests
  • The whole codebase on the default branch at the time and date shown on the "코드 품질" settings page

In addition, you'll see an AI-powered analysis of all recent pushes to the default branch.

Pull request results

When CodeQL finds rule-based problems on pull requests, you'll see comments from the github-code-quality[bot]. Where possible, each comment will include a 코파일럿 자동 수정 suggestion on how to fix the problem. See 끌어오기 요청을 병합하기 전에 코드 품질 결과 수정.

Default branch results

Code Quality findings on the default branch are reported on "코드 품질" pages on the Security tab for the repository:

Scan information

Each CodeQL analysis will use GitHub Actions minutes and can be seen on the Actions tab of the repository as a run of the dynamic "코드 품질" workflow.

Next steps