Skip to content

Commit

Permalink
unknown > critical
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed May 16, 2023
1 parent 37668ef commit 3b03622
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/util/vulnerability/utils.spec.ts
Expand Up @@ -129,7 +129,7 @@ describe('util/vulnerability/utils', () => {

it('child UNKNOWN vulnerability severity rating is maintained', () => {
const parentConfig = {
vulnerabilitySeverity: undefined,
vulnerabilitySeverity: 'CRITICAL',
};

const childConfig = {
Expand Down
2 changes: 1 addition & 1 deletion lib/util/vulnerability/utils.ts
@@ -1,10 +1,10 @@
const severityOrder: Record<string, number> = {
UNKNOWN: 0,
LOW: 1,
MEDIUM: 2,
MODERATE: 2,
HIGH: 3,
CRITICAL: 4,
UNKNOWN: 5,
};

export function getHighestVulnerabilitySeverity<
Expand Down

0 comments on commit 3b03622

Please sign in to comment.