6.3 KiB
title, shortTitle, intro, product, redirect_from, versions, type, topics
| title | shortTitle | intro | product | redirect_from | versions | type | topics | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Enabling GitHub Advanced Security for your enterprise | Enabling GitHub Advanced Security | You can configure {% data variables.product.product_name %} to include {% data variables.product.prodname_GH_advanced_security %}. This provides extra features that help users find and fix security problems in their code. | {% data reusables.gated-features.ghas %} |
|
|
how_to |
|
About enabling {% data variables.product.prodname_GH_advanced_security %}
{% data reusables.advanced-security.ghas-helps-developers %}
When you enable {% data variables.product.prodname_GH_advanced_security %} for your enterprise, repository administrators in all organizations can enable the features unless you set up a policy to restrict access. For more information, see "AUTOTITLE."
{% ifversion secret-scanning-enterprise-level-api %}{% data reusables.secret-scanning.secret-scanning-enterprise-level-api %}{% endif %}
For guidance on a phased deployment of GitHub Advanced Security, see "AUTOTITLE."
Checking whether your license includes {% data variables.product.prodname_GH_advanced_security %}
{% data reusables.enterprise-accounts.access-enterprise %} {% data reusables.enterprise-accounts.settings-tab %} {% data reusables.enterprise-accounts.license-tab %}
- If your license includes {% data variables.product.prodname_GH_advanced_security %}, the license page includes a section showing details of current usage.
Prerequisites for enabling {% data variables.product.prodname_GH_advanced_security %}
-
Upgrade your license for {% data variables.product.product_name %} to include {% data variables.product.prodname_GH_advanced_security %}. For information about licensing, see "AUTOTITLE."
-
Download the new license file. For more information, see "AUTOTITLE."
-
Upload the new license file to {% data variables.location.product_location %}. For more information, see "AUTOTITLE."
-
Review the prerequisites for the features you plan to enable.
Enabling and disabling {% data variables.product.prodname_GH_advanced_security %} features
{% data reusables.enterprise_management_console.enable-disable-security-features %}
{% data reusables.enterprise_site_admin_settings.access-settings %} {% data reusables.enterprise_site_admin_settings.management-console %} {% data reusables.enterprise_management_console.advanced-security-tab %}
- Under "Security," select the features that you want to enable and deselect any features you want to disable. {% data reusables.enterprise_management_console.save-settings %}
When {% data variables.product.product_name %} has finished restarting, you're ready to set up any additional resources required for newly enabled features. For more information, see "AUTOTITLE."
Enabling or disabling {% data variables.product.prodname_GH_advanced_security %} features via the administrative shell (SSH)
You can enable or disable features programmatically on {% data variables.location.product_location %}. For more information about the administrative shell and command-line utilities for {% data variables.product.prodname_ghe_server %}, see "AUTOTITLE" and "AUTOTITLE."
For example, you can enable any {% data variables.product.prodname_GH_advanced_security %} feature with your infrastructure-as-code tooling when you deploy an instance for staging or disaster recovery.
-
SSH into {% data variables.location.product_location %}.
-
Enable features for {% data variables.product.prodname_GH_advanced_security %}.
- To enable {% data variables.product.prodname_code_scanning_caps %}, enter the following commands.
ghe-config app.minio.enabled true ghe-config app.code-scanning.enabled true- To enable {% data variables.product.prodname_secret_scanning_caps %}, enter the following command.
ghe-config app.secret-scanning.enabled true- To enable the dependency graph, enter the following command.
ghe-config app.dependency-graph.enabled true -
Optionally, disable features for {% data variables.product.prodname_GH_advanced_security %}.
- To disable {% data variables.product.prodname_code_scanning %}, enter the following commands.
ghe-config app.minio.enabled false ghe-config app.code-scanning.enabled false- To disable {% data variables.product.prodname_secret_scanning %}, enter the following command.
ghe-config app.secret-scanning.enabled false- To disable the dependency graph, enter the following command.
ghe-config app.dependency-graph.enabled false -
Apply the configuration.
ghe-config-apply