Skip to main content

Эта версия GitHub Enterprise Server будет прекращена 2026-03-17. Исправления выпускаться не будут даже при критических проблемах безопасности. Для повышения производительности, повышения безопасности и новых функций выполните обновление до последней версии GitHub Enterprise Server. Чтобы получить справку по обновлению, обратитесь в службу поддержки GitHub Enterprise.

Cannot enable CodeQL in a private repository

GitHub Advanced Security must be enabled in order to use code scanning on private repositories.

Confirm whether GitHub Advanced Security is enabled

  1. На GitHubперейдите на главную страницу репозитория.

  2. Под именем репозитория щелкните Settings. Если вкладка "Параметры" не отображается, выберите раскрывающееся меню и нажмите кнопку "Параметры".

    Снимок экрана: заголовок репозитория с вкладками. Вкладка "Параметры" выделена темно-оранжевым контуром.

  3. В разделе "Безопасность" боковой панели щелкните Code security and analysis.

  4. On the settings page, scroll down to "Advanced Security."

  5. If there is an associated and active Enable button, Advanced Security is available for this repository but not yet enabled.

  6. If use of GitHub Advanced Security is blocked by a policy, the Enable button is inactive and the owner of the policy is listed.

    "Screenshot of the Advanced Security" setting. The enterprise policy owner and the inactive "Enable" button are highlighted in dark orange.

Requesting access to GitHub Advanced Security

  1. In the "Advanced 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 Advanced Security. For more information, see Применение политик безопасности кода и анализа для вашего предприятия.
  2. Follow your company's policy for requesting access to additional features.

Enabling GitHub Advanced Security

  1. Open the "Code security" settings page.
  2. Next to the "Advanced Security" feature, click Enable.
  3. Rerun code scanning.