Following the ship of transitive labeling for npm packages, the same capabilities are now available for Maven packages:
- Dependabot alerts now contain a direct label if they are associated with a package you’ve directly included. In addition, there’s now a
relationship:direct
filter in the search bar to only show those alerts caused by your direct dependencies. - The direct dependency that led to a package’s inclusion in your dependency graph is visible both in the text of any new Dependabot alerts and the dependency insights page (click the … button, then Show options to view it).
- A repository’s SBOM will contain a
relationships
section that uses the SPDXrelationshipType: DEPENDS_ON
field to express the tree of package dependencies. Similarly, the GraphQL API will now return arelationship
field withdirect
,transitive
, orunknown
values in the DependencyGraphDependency object.
Ability to refresh Dependabot alerts from the list view
In addition to the Maven-specific additions, the Alert Settings menu on Dependabot alert tables now provides a Refresh Dependabot alerts option which will rescan your repository’s manifest files, rebuild its dependency graph, and refresh its open Dependabot alerts.
Getting started
To get transitive dependency labeling on your repositories, make sure dependency graph is enabled, and either enable Automatic dependency submission on the same settings page or use a dependency submission action. As a beneficial side-effect of this change, other package ecosystems with actions that create transitive dependency trees – such as go – will also now receive transitive and direct labels.
To see the Dependabot labels, you’ll also need to enable Dependabot alerts.
Join the discussion within GitHub Community.