google / google/deps.dev

Include advisories and licenses in dependency graphs?

Open
#16 4 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
443
Forks
54
Avg merge
1d 22h
Merged PRs (30d)
3

Description

(Originally requested by @agmond in #3.)

Currently, to get a list of the advisories that affect a package version or one of its dependencies, a client:

1. Calls [GetDependencies](https://docs.deps.dev/api/v3alpha/#getdependencies).
2. For each node in the response, calls [GetVersion](https://docs.deps.dev/api/v3alpha/#getversion), ideally making many requests concurrently as in the [package_lock_licenses](https://github.com/google/deps.dev/tree/main/examples/go/package_lock_licenses) example.

If the response from GetDependencies included advisories, only a single call would be needed. The same applies to licenses.

The downside is that the response would be larger (and slower to serve) for all clients, regardless of whether they are interested in advisories (or licenses).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.