|
| 1 | +--- |
| 2 | +title: Enabling the dependency graph for your enterprise |
| 3 | +intro: "You can allow users to identify their projects' dependencies by enabling the dependency graph." |
| 4 | +shortTitle: Enable dependency graph |
| 5 | +permissions: 'Site administrators can enable the dependency graph.' |
| 6 | +versions: |
| 7 | + ghes: '*' |
| 8 | +type: how_to |
| 9 | +topics: |
| 10 | + - Enterprise |
| 11 | + - Security |
| 12 | + - Dependency graph |
| 13 | +--- |
| 14 | + |
| 15 | +## About the dependency graph |
| 16 | + |
| 17 | +{% data reusables.dependabot.about-the-dependency-graph %} For more information, see "[About the dependency graph](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph)" |
| 18 | + |
| 19 | +After you enable the dependency graph for your enterprise, you can enable {% data variables.product.prodname_dependabot %} to detect vulnerable dependencies in your repository{% ifversion ghes > 3.2 %} and automatically fix the vulnerabilities{% endif %}. For more information, see "[Enabling {% data variables.product.prodname_dependabot %} for your enterprise](/admin/configuration/configuring-github-connect/enabling-dependabot-for-your-enterprise)." |
| 20 | + |
| 21 | +{% ifversion ghes > 3.1 %} |
| 22 | +You can enable the dependency graph via the {% data variables.enterprise.management_console %} or the administrative shell. We recommend using the {% data variables.enterprise.management_console %} unless {% data variables.product.product_location %} uses clustering. |
| 23 | + |
| 24 | +## Enabling the dependency graph via the {% data variables.enterprise.management_console %} |
| 25 | + |
| 26 | +If your {% data variables.product.product_location %} uses clustering, you cannot enable the dependency graph with the {% data variables.enterprise.management_console %} and must use the administrative shell instead. For more information, see "[Enabling the dependency graph via the administrative shell](#enabling-the-dependency-graph-via-the-administrative-shell)." |
| 27 | + |
| 28 | +{% data reusables.enterprise_site_admin_settings.sign-in %} |
| 29 | +{% data reusables.enterprise_site_admin_settings.access-settings %} |
| 30 | +{% data reusables.enterprise_site_admin_settings.management-console %} |
| 31 | +{% data reusables.enterprise_management_console.advanced-security-tab %} |
| 32 | +1. Under "Security," click **Dependency graph**. |
| 33 | + |
| 34 | +{% data reusables.enterprise_management_console.save-settings %} |
| 35 | +1. Click **Visit your instance**. |
| 36 | + |
| 37 | +## Enabling the dependency graph via the administrative shell |
| 38 | + |
| 39 | +{% endif %}{% ifversion ghes < 3.2 %} |
| 40 | +## Enabling the dependency graph |
| 41 | +{% endif %} |
| 42 | +{% data reusables.enterprise_site_admin_settings.sign-in %} |
| 43 | +1. In the administrative shell, enable the dependency graph on {% data variables.product.product_location %}: |
| 44 | + {% ifversion ghes > 3.1 %}```shell |
| 45 | + ghe-config app.dependency-graph.enabled true |
| 46 | + ``` |
| 47 | + {% else %}```shell |
| 48 | + ghe-config app.github.dependency-graph-enabled true |
| 49 | + ghe-config app.github.vulnerability-alerting-and-settings-enabled true |
| 50 | + ```{% endif %} |
| 51 | + {% note %} |
| 52 | +
|
| 53 | + **Note**: For more information about enabling access to the administrative shell via SSH, see "[Accessing the administrative shell (SSH)](/enterprise/{{ currentVersion }}/admin/configuration/accessing-the-administrative-shell-ssh)." |
| 54 | +
|
| 55 | + {% endnote %} |
| 56 | +2. Apply the configuration. |
| 57 | + ```shell |
| 58 | + $ ghe-config-apply |
| 59 | + ``` |
| 60 | +3. Return to {% data variables.product.prodname_ghe_server %}. |
0 commit comments