If you are on a GitHub Free or GitHub Pro plan, you can only use code scanning on repositories that are publicly available. To enable code scanning for private or internal repositories, you must upgrade to GitHub Team or GitHub Enterprise with GitHub Code Security and enable Code Security for the repository. For more information, see GitHub의 플랜 and GitHub Advanced Security 정보.
Confirm whether GitHub Code Security is enabled
-
GitHub에서 리포지토리의 기본 페이지로 이동합니다.
-
리포지토리 이름 아래에서 Settings를 클릭합니다. "설정" 탭이 표시되지 않으면 드롭다운 메뉴를 선택한 다음 설정을 클릭합니다.

-
사이드바의 "Security" 섹션에서 Advanced Security 를 클릭합니다.
-
On the settings page, scroll down to "Code Security."
-
If there is an associated and active Enable button, Code Security is available for this repository but not yet enabled.
-
If use of GitHub Code Security is blocked by a policy, " Disabled" is shown in place of the Enable button.

Requesting access to GitHub Code Security
- In the "Code Security" settings, click the enterprise or organization name to display a list of users with access to edit the policy that controls access to GitHub Code Security. For more information, see 엔터프라이즈에 대한 코드 보안 및 분석을 위한 정책 적용.
- Follow your company's policy for requesting access to additional features.
Enabling GitHub Code Security
- Open the "Code security" settings page.
- Next to the "Code Security" feature, click Enable.
- Rerun code scanning.