Skip to main content

Dependency graph

You can use the dependency graph to identify all your project's dependencies. The dependency graph supports a range of popular package ecosystems.

Кто может использовать эту функцию?

Граф зависимостей доступен для следующих типов репозитория:

  • Общедоступные репозитории (по умолчанию)
  • Частные репозитории
  • Вилки

About the dependency graph

Граф зависимостей — это сводка файлов манифеста и блокировки, хранящихся в репозитории, и всех зависимостей, отправленных для репозитория с помощью API отправки зависимостей. Для каждого репозитория отображается:

  • Зависимости, экосистемы и пакеты, от которых он зависит
  • Зависимые, репозитории и пакеты, зависящие от него

Для каждой зависимости можно просмотреть версию license information, файл манифеста, который включал его, и наличие известных уязвимостей. Для экосистем пакетов, поддерживающих транзитивные зависимости, будет отображаться состояние связи, и вы можете щелкнуть "", а затем "Показать пути", чтобы увидеть транзитивный путь, который привел в зависимость.

Вы также можете найти определенную зависимость с помощью строки поиска. Зависимости отсортированы автоматически с уязвимыми пакетами в верхней части.

For information on the supported ecosystems and manifest files, see Поддерживаемые экосистемы пакетов графа зависимостей.

When you create a pull request containing changes to dependencies that targets the default branch, GitHub uses the dependency graph to add dependency reviews to the pull request. These indicate whether the dependencies contain vulnerabilities and, if so, the version of the dependency in which the vulnerability was fixed. For more information, see Dependency review.

How the dependency graph is built

The dependency graph automatically parses dependencies by analyzing manifests and lock files in your repository. You can also submit data yourself. For more information, see Как граф зависимостей распознаёт зависимости.

Dependency graph availability

Администраторы репозитория могут включить или отключить граф зависимостей для репозиториев. For more information, see Управление параметрами безопасности и анализа для репозитория.

Администраторы репозитория могут включить или отключить граф зависимостей для репозиториев. See Enabling the dependency graph.

Dependents and "used by" data

For public repositories, the dependency graph lists dependents. These are other public repositories that depend on the repository or on packages that it publishes. This information is not reported for private repositories.

Некоторые репозитории имеют раздел «Использовано» в боковой панели вкладки Код . В этом разделе показано количество найденных публичных ссылок на пакет и показаны аватары некоторых владельцев зависимых проектов. Clicking any item in this section takes you to the Dependents tab of the dependency graph.

Your repository will have a "Used by" section if:

Screenshot of the "Used by" section for a repository showing the summary of "13.4m" with details of 8 avatars and "+13,435,819."

The "Used by" section represents a single package from the repository. If you have admin permissions to a repository that contains multiple packages, you can choose which package the "Used by" section represents. See Изменение данных «используемых» для репозитория.

What you can do with the dependency graph

You can use the dependency graph to:

Further reading