nexB / purldb

Tools to create and expose a database of purls (Package URLs). This project is sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase/ and nexB for https://www.aboutcode.org/ Chat is at https://gitter.im/aboutcode-org/discuss
https://purldb.readthedocs.io/
29 stars 21 forks source link

Create purlcli option to run d2d given a single PURL input #420

Closed pombredanne closed 1 month ago

pombredanne commented 2 months ago

I would like to have this feature with this design (which needs refinement)

These are good to use as an example:

pombredanne commented 2 months ago

Here is another example:

Therefore I think we should have enough data in this simple case to get the tow and from URLs for a d2d run even if the full indexing would not be completed by the time the collect/ call returns

TG1999 commented 1 month ago

This is done now.

This PR has been merged

To test this feature:

Run this command in purldb after running make dev in another terminal

For running d2d on a single PURL

purlcli d2d-purl-set --purl pkg:github/expressjs/express@4.19.0 --output - --purldb-api-url http://127.0.0.1:8001/api/ --matchcode-api-url http://127.0.0.1:8002/api/

For running d2d on pair of 2 PURLs


 --purldb-api-url http://127.0.0.1:8001/api/ --matchcode-api-url http://127.0.0.1:8002/api/ --output -```

Output with d2d results will appear on screen