scancode.io
scancode.io copied to clipboard
Add link to lookup in PurlDB or external reference using a PURL as a key
When I have a package keyed by PURL I would like to easily check the reference information available in some other system that would also be keyed by PURL.
This would typically be a PurlDB, or some other system. For this I would like to have a way to configure one or more URL patterns for my ScanCode.io installation and the UI would display this data when I am looking at a single package.
For a start it could a single base URL to a PurlDB package using "purl=" as a query string option. Later, we may want to have more than one such link as this could be looking up in various open databases keyed by PURL.
@pombredanne
the UI would display this data when I am looking at a single package.
- To clarify, those URLs would be displayed on the package details view?
- Where in that view would you want to see those URLs included?
What about something along those lines for configuring this as a setting:
SCANCODEIO_PURL_LOOKUP_URLS = [
"https://purlb_domain/api/packages/?purl={purl}",
"https://vulnerablecode_domain/packages/{purl}"
...
]