We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 113e1a3 commit 7d43ddfCopy full SHA for 7d43ddf
lib/audit.js
@@ -78,6 +78,12 @@ function auditCmd (args, cb) {
78
}
79
throw err
80
}).then((auditResult) => {
81
+ const vulns =
82
+ auditResult.metadata.vulnerabilities.low +
83
+ auditResult.metadata.vulnerabilities.moderate +
84
+ auditResult.metadata.vulnerabilities.high +
85
+ auditResult.metadata.vulnerabilities.critical
86
+ if (vulns > 0) process.exitCode = 1
87
return audit.printFullReport(auditResult)
88
}).asCallback(cb)
89
0 commit comments