Skip to main content

About Copilot Autofix for code scanning

코파일럿 자동 수정 provides targeted recommendations to help you fix code scanning alerts and avoid introducing new security vulnerabilities.

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

code scanning에 대한 GitHub Copilot Autofix는 다음 리포지토리 유형에 사용할 수 있습니다.

  • GitHub.com에 대한 퍼블릭 리포지토리
  • GitHub Code Security가 활성화된 상태의GitHub Team 또는 GitHub Enterprise Cloud의 조직 소유 리포지토리

코파일럿 자동 수정 is an expansion of code scanning that provides you with targeted recommendations to help you fix code scanning alerts so you can avoid introducing new security vulnerabilities. The potential fixes are generated automatically by large language models (LLMs) using data from the codebase and from code scanning analysis.

How 코파일럿 자동 수정 works

코파일럿 자동 수정 translates the description and location of an alert into code changes that may fix the alert. It interfaces with the large language model GPT-5.1 from OpenAI, which has sufficient generative capabilities to produce both suggested fixes in code and explanatory text for those fixes.

Enabling and managing 코파일럿 자동 수정

You do not need a subscription to GitHub Copilot to use GitHub Copilot Autofix. 코파일럿 자동 수정 is available to all public repositories on GitHub.com, as well as internal or private repositories owned by organizations and enterprises that have a license for GitHub Code Security.

코파일럿 자동 수정 is allowed by default and enabled for every repository that uses CodeQL, regardless of whether it uses default or advanced setup for code scanning. There is no separate step to enable 코파일럿 자동 수정: enabling code scanning with CodeQL is sufficient. See 코드 검사에 대한 기본 설정 구성.

Administrators at the enterprise, organization, and repository levels can choose to disable 코파일럿 자동 수정. If 코파일럿 자동 수정 has been disabled at your level, you can re-enable it by following the same steps used to disable it and selecting the option to allow 코파일럿 자동 수정. To learn how to manage 코파일럿 자동 수정 at each level, see 코드 검사 보안 경고에 대한 Copilot Autofix 사용 안 함.