Skip to content

Commit

Permalink
test(audit): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Nov 8, 2022
1 parent 7fb6372 commit 36481ad
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 183 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-commands-audit/src/audit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ ${JSON.stringify(newOverrides, null, 2)}`,
if (ignoreCves) {
advisories = advisories.filter(({ cves }) => difference(cves, ignoreCves).length > 0)
}
advisories
advisories = advisories
.filter(({ severity }) => AUDIT_LEVEL_NUMBER[severity] >= auditLevel)
.sort((a1, a2) => AUDIT_LEVEL_NUMBER[a2.severity] - AUDIT_LEVEL_NUMBER[a1.severity])
for (const advisory of advisories) {
Expand Down

0 comments on commit 36481ad

Please sign in to comment.