About the dependency graph
依赖项关系图是存储在存储库 的存储库的依赖关系。 对于每个存储库,它显示 依赖项,即它所依赖的生态系统和包。 GitHub Enterprise Server 不计算有关依赖项、存储库和依赖于存储库的包的信息。 For more information, see "About the dependency graph"
After you enable the dependency graph for your enterprise, you can enable Dependabot to detect insecure dependencies in your repository. For more information, see "Enabling Dependabot for your enterprise."
You can enable the dependency graph via the 管理控制台 or the administrative shell. We recommend using the 管理控制台 unless your GitHub Enterprise Server instance uses clustering.
Enabling the dependency graph via the 管理控制台
If your GitHub Enterprise Server instance uses clustering, you cannot enable the dependency graph with the 管理控制台 and must use the administrative shell instead. For more information, see "Enabling the dependency graph via the administrative shell."
-
Sign in to your GitHub Enterprise Server instance at
http(s)://HOSTNAME/login
. -
从 GitHub Enterprise Server 上的管理帐户任意页面的右上角,单击 。
-
如果� 尚未在“站点管理员”页上,请在左上角单击“站点管理员”。
-
在左侧边� �中,单击“管理控制台”。
-
在左侧边� �中,单击“安全性”。
-
Under "Security," click Dependency graph.
-
在左侧边� �下,单击“保存设置”。
注意:保存 管理控制台 中的设置会重启系统服务,这可能会导致用户可察觉的停机时间。
-
等待配置运行完毕。
-
Click Visit your instance.
Enabling the dependency graph via the administrative shell
-
Sign in to your GitHub Enterprise Server instance at
http(s)://HOSTNAME/login
. -
In the administrative shell, enable the dependency graph on your GitHub Enterprise Server instance:
ghe-config app.dependency-graph.enabled true
Note: For more information about enabling access to the administrative shell via SSH, see "Accessing the administrative shell (SSH)."
-
Apply the configuration.
$ ghe-config-apply
-
Return to GitHub Enterprise Server.