Closed titpetric closed 7 months ago
The PR implements a cli API for retrieving CVE details:
# ./go-cve-dictionary cve CVE-2004-0230 { "CveID": "CVE-2004-0230", "Nvds": [ { "CveID": "CVE-2004-0230", "Descriptions": [
It supports a list of CVEs as arguments (prints individual objects):
# ./go-cve-dictionary cve CVE-2004-0230 CVE-2005-1119 | jq -s | jq .[].CveID "CVE-2004-0230" "CVE-2005-1119"
It's reasonably easy to fetch the NVD (or any other DB), but hard to use in scripting jobs as it needs a running server.
Please delete options that are not relevant.
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
You don't have to satisfy all of the following.
make fmt
make test
Is this ready for review?: YES
What did you implement:
The PR implements a cli API for retrieving CVE details:
It supports a list of CVEs as arguments (prints individual objects):
It's reasonably easy to fetch the NVD (or any other DB), but hard to use in scripting jobs as it needs a running server.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist:
You don't have to satisfy all of the following.
make fmt
make test
Is this ready for review?: YES