Skip to main content

Disabling Copilot Autofix for code scanning security alerts

You can block availability of GitHub Copilot Autofix for security alerts for an enterprise or disable GitHub Copilot Autofix at the organization and repository level.

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

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

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

About disabling 코파일럿 자동 수정 for code scanning

GitHub Copilot Autofix is a GitHub Copilot-powered expansion of code scanning. It provides users with targeted recommendations to help them fix code scanning alerts (including CodeQL alerts) so they can avoid introducing new security vulnerabilities. To learn more about 코파일럿 자동 수정 for code scanning, see 코드 검사에 대한 Copilot Autofix의 책임 있는 사용.

참고 항목

GitHub Copilot Autofix를 사용하기 위해 GitHub Copilot을 구독할 필요는 없습니다. 코파일럿 자동 수정는 GitHub.com의 모든 퍼블릭 리포지토리와 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. Administrators at the enterprise, organization and repository levels can choose to opt out and disable 코파일럿 자동 수정 for security alerts.

Note that disabling 코파일럿 자동 수정 at any level will close all open 코파일럿 자동 수정 suggestions on security comments. If 코파일럿 자동 수정 is disabled and then subsequently enabled, 코파일럿 자동 수정 won't automatically suggest fixes for any pull requests that are already open. The suggestions will only be generated for any pull requests that are opened after 코파일럿 자동 수정 is enabled, or after re-running code scanning security analysis on existing pull requests.

참고 항목

코파일럿 자동 수정 is an integral part of GitHub Code Quality and will continue to run on code quality results even when it is disabled for code security results.

Blocking use of 코파일럿 자동 수정 for an enterprise

Enterprise administrators can disallow 코파일럿 자동 수정 for security results in their enterprise. If you disallow 코파일럿 자동 수정 for an enterprise, 코파일럿 자동 수정 cannot be enabled for any organizations or repositories within the enterprise.

Note that allowing 코파일럿 자동 수정 for an enterprise does not enforce enablement of 코파일럿 자동 수정, but means that organization and repository administrators will have the option to enable or disable 코파일럿 자동 수정 for security results.

Disallowing 코파일럿 자동 수정 at the enterprise level will remove all open 코파일럿 자동 수정 suggestions on security comments across all repositories of all organizations within the enterprise.

  1. 페이지 상단에서 정책을 클릭합니다.{ %else %}페이지의 왼쪽에 있는 엔터프라이즈 계정 사이드바에서 정책을 클릭합니다.
  2. "정책"에서 Advanced Security 를 클릭합니다.
  3. Under "코파일럿 자동 수정", use the dropdown menu to choose "Not allowed."

Disabling 코파일럿 자동 수정 for an organization

If 코파일럿 자동 수정 is allowed at the enterprise level, organization administrators have the option to disable 코파일럿 자동 수정 for an organization. If you disable 코파일럿 자동 수정 for an organization, 코파일럿 자동 수정 cannot be enabled for any repositories within the organization.

Note that disabling 코파일럿 자동 수정 at the organization level will remove all open 코파일럿 자동 수정 suggestions on security comments across all repositories in the organization.

  1. GitHub의 오른쪽 위 모서리에서 프로필 사진을 클릭한 다음, Your organizations를 클릭합니다.
  2. 조직 옆에 있는 설정을 클릭합니다.
  3. 사이드바의 "Security" 섹션에서 Advanced Security 를 클릭한 다음, Global settings를 클릭합니다.
  4. Under the "Code scanning" section, deselect 코파일럿 자동 수정.

For more information about configuring global code scanning settings, see 조직에 대한 글로벌 보안 설정 구성.

Disabling 코파일럿 자동 수정 for a repository

If 코파일럿 자동 수정 is allowed at the enterprise level and enabled at the organization level, repository administrators have the option to disable 코파일럿 자동 수정 for a repository. Disabling 코파일럿 자동 수정 at the repository level will remove all open 코파일럿 자동 수정 suggestions on security comments across the repository.

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

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

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

  3. 사이드바의 "Security" 섹션에서 Advanced Security 를 클릭합니다.

  4. In the "Code Security" section, deselect 코파일럿 자동 수정.