guac
guac copied to clipboard
[feature] Use deps.dev version-project mapping provenance
Deps.dev now specifies how the relationship between package versions and projects (e.g. github source) have been derived. This is useful information because it indicates how trustworthy that link is -- it may have been derived from unverified metadata or from SLSA provenance. See see relatedProjects[].relationProvenance
in https://docs.deps.dev/api/v3alpha/#getversion.
Along the same lines, deps.dev now explicitly links the package version to a project identifier (see relatedProjects[].projectKey
in https://docs.deps.dev/api/v3alpha/#getversion) that can be used in other API calls. Previously, we constructed the project identifier from the VCS url, which is not as reliable (e.g. #1413).
There are two changes to make:
- Update the
HasSourceAt
node with this additional data. - Call
GetProject
with the project identifier given by the call toGetVersion
.
Also see #1768