From a297f57e0630a71061c299c71d0f351eb544acab Mon Sep 17 00:00:00 2001 From: Brandyn Phelps Date: Tue, 28 Sep 2021 00:06:49 -0700 Subject: [PATCH] Fix: GHES 3.1 instructions are missing a setting that should be enabled (#21771) * Reinstate line that was removed --- ...b-advanced-security-for-your-enterprise.md | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/content/admin/advanced-security/enabling-github-advanced-security-for-your-enterprise.md b/content/admin/advanced-security/enabling-github-advanced-security-for-your-enterprise.md index 5433879261..30c760de4a 100644 --- a/content/admin/advanced-security/enabling-github-advanced-security-for-your-enterprise.md +++ b/content/admin/advanced-security/enabling-github-advanced-security-for-your-enterprise.md @@ -87,10 +87,14 @@ For example, you can enable any {% data variables.product.prodname_GH_advanced_s ```shell ghe-config app.secret-scanning.enabled true ``` - - To enable {% data variables.product.prodname_dependabot %}, enter the following command. - ```shell - {% ifversion ghes > 3.1 %}ghe-config app.dependency-graph.enabled true{% else %}ghe-config app.github.dependency-graph-enabled true{% endif %} + - To enable {% data variables.product.prodname_dependabot %}, enter the following {% ifversion ghes > 3.1 %}command{% else %}commands{% endif %}. + {% ifversion ghes > 3.1 %}```shell + ghe-config app.dependency-graph.enabled true ``` + {% else %}```shell + ghe-config app.github.dependency-graph-enabled true + ghe-config app.github.vulnerability-alerting-and-settings-enabled true + ```{% endif %} 2. Optionally, disable features for {% data variables.product.prodname_GH_advanced_security %}. - To disable {% data variables.product.prodname_code_scanning %}, enter the following commands. @@ -102,11 +106,14 @@ For example, you can enable any {% data variables.product.prodname_GH_advanced_s ```shell ghe-config app.secret-scanning.enabled false ``` - - To disable {% data variables.product.prodname_dependabot %}, enter the following command. - ```shell - {% ifversion ghes > 3.1 %}ghe-config app.dependency-graph.enabled false{% else %}ghe-config app.github.dependency-graph-enabled false{% endif %} + - To disable {% data variables.product.prodname_dependabot %}, enter the following {% ifversion ghes > 3.1 %}command{% else %}commands{% endif %}. + {% ifversion ghes > 3.1 %}```shell + ghe-config app.dependency-graph.enabled false ``` - + {% else %}```shell + ghe-config app.github.dependency-graph-enabled false + ghe-config app.github.vulnerability-alerting-and-settings-enabled false + ```{% endif %} 3. Apply the configuration. ```shell ghe-config-apply