Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com> Co-authored-by: mchammer01 <42146119+mchammer01@users.noreply.github.com>
3.6 KiB
title, intro, allowTitleToDifferFromFilename, type, topics, versions
| title | intro | allowTitleToDifferFromFilename | type | topics | versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Cannot enable CodeQL in a private repository | {% data variables.product.prodname_GH_code_security %} must be enabled in order to use {% data variables.product.prodname_code_scanning %} on private repositories. | true | reference |
|
|
{% ifversion fpt %} {% ifversion ghas-products-cloud %} If you are on a free or pro plan, you can only use {% data variables.product.prodname_code_scanning %} on repositories that are publicly available. To enable {% data variables.product.prodname_code_scanning %} for private or internal repositories, you must upgrade to {% data variables.product.prodname_team %} or {% data variables.product.prodname_enterprise %} with {% data variables.product.prodname_GH_code_security %} and enable {% data variables.product.prodname_GH_code_security %} for the repository. For more information, see AUTOTITLE and AUTOTITLE. {% else %} If you are on a free, pro, or team plan, you can only use {% data variables.product.prodname_code_scanning %} on repositories that are publicly available. To enable {% data variables.product.prodname_code_scanning %} for private or internal repositories, you must upgrade to {% data variables.product.prodname_enterprise %} with {% data variables.product.prodname_GHAS %} and enable {% data variables.product.prodname_GHAS %} for the repository. For more information, see AUTOTITLE and AUTOTITLE. {% endif %} {% endif %}
{% ifversion ghas-products-cloud or ghec or ghes %}
Confirm whether {% data variables.product.prodname_GH_code_security %} is enabled
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} {% data reusables.user-settings.security-analysis %}
-
Scroll down to "{% data variables.product.prodname_GH_advanced_security %}."
-
If there is an associated and active Enable button, {% data variables.product.prodname_GH_advanced_security %} is available for this repository but not yet enabled.
-
If use of {% data variables.product.prodname_GH_advanced_security %} is blocked by a policy, the Enable button is inactive and the owner of the policy is listed.
Requesting access to {% data variables.product.prodname_GH_advanced_security %}
- In the "{% data variables.product.prodname_GH_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 {% data variables.product.prodname_GH_advanced_security %}. For more information, see AUTOTITLE.
- Follow your company's policy for requesting access to additional features.
Enabling {% data variables.product.prodname_GH_advanced_security %}
- In the "{% data variables.product.prodname_GH_advanced_security %}" settings, click Enable.
- Rerun {% data variables.product.prodname_code_scanning %}.
{% endif %}
