fetch-metadata
fetch-metadata copied to clipboard
fetch all vulnerability alerts
Fetch all security alerts of a repository. Fixes dependabot/fetch-metadata#542
Also slightly adjusted the find check for the security nodes because I had e.g. something like this in the result list (note the missing = in front of the version of vulnerableRequirements):
{
"vulnerableManifestFilename": "yarn.lock",
"vulnerableManifestPath": "cypress/yarn.lock",
"vulnerableRequirements": "4.4.0",
"state": "OPEN",
"securityVulnerability": {
"package": {
"name": "terser"
}
},
"securityAdvisory": {
"cvss": {
"score": 7.5
},
"ghsaId": "GHSA-4wf5-vphf-c2xc"
}
}