Closed mobilutz closed 2 years ago
The duplications are the concern. I must have missed a deduplication spot (I have them in a few places). IMO, that's the fix required in this scenario. Thanks for reporting!
Closed with https://github.com/IBM/audit-ci/pull/240, will create a release shortly.
Released with v6.1.1
on NPM now!
@quinnturner Thanks for the quick change.
Unfortunately the summary still has the same lines as Found vulnerable advisory paths
even with v6.1.1.
I created a repo which shows this: https://github.com/mobilutz/audit-ci-minimist-summary-output
Here the found paths output as well:
Found vulnerable advisory paths:
GHSA-5v2h-r2cx-5xgj|esdoc>marked
GHSA-rrrm-qjm4-v8hf|esdoc>marked
GHSA-rp65-9cf3-cjxr|esdoc>cheerio>css-select>nth-check
GHSA-rp65-9cf3-cjxr|esdoc>ice-cap>cheerio>css-select>nth-check
GHSA-rp65-9cf3-cjxr|esdoc>cheerio>css-select>nth-check
GHSA-rp65-9cf3-cjxr|esdoc>ice-cap>cheerio>css-select>nth-check
GHSA-xvch-5gv4-984h|minimist
GHSA-xvch-5gv4-984h|esdoc>minimist
GHSA-xvch-5gv4-984h|minimist
GHSA-xvch-5gv4-984h|esdoc>minimist
Fix released in v6.1.2
thanks to Kyle!
Just ran v6.1.2
and can confirm that it reduces the output!
yarn run v1.22.17
$ audit-ci --config audit-ci-config.json
audit-ci version: 6.1.2
Yarn audit report summary:
{
"vulnerabilities": {
"info": 0,
"low": 0,
"moderate": 2,
"high": 4,
"critical": 0
},
"dependencies": 189,
"devDependencies": 0,
"optionalDependencies": 0,
"totalDependencies": 189
}
Found vulnerable advisory paths:
GHSA-xvch-5gv4-984h|minimist
GHSA-xvch-5gv4-984h|esdoc>minimist
GHSA-5v2h-r2cx-5xgj|esdoc>marked
GHSA-rrrm-qjm4-v8hf|esdoc>marked
GHSA-rp65-9cf3-cjxr|esdoc>cheerio>css-select>nth-check
GHSA-rp65-9cf3-cjxr|esdoc>ice-cap>cheerio>css-select>nth-check
Failed security audit due to high, moderate vulnerabilities.
Vulnerable advisories are:
https://github.com/advisories/GHSA-xvch-5gv4-984h
https://github.com/advisories/GHSA-5v2h-r2cx-5xgj
https://github.com/advisories/GHSA-rrrm-qjm4-v8hf
https://github.com/advisories/GHSA-rp65-9cf3-cjxr
Exiting...
error Command failed with exit code 1.
Thanks @kyletsang
We have a warning for this advisory in our system: https://github.com/advisories/GHSA-xvch-5gv4-984h
But the summary output of the audit-ci run does not look good in my opinion:
Of course we just need to upgrade
minimist
and the output goes away, but I do think that the summary should be displayed differently here.I will try to find time to create a dummy repo for this, but for now here the needed
yarn.lock
andaudit-config.json
content.audit-config.json