Skip to content

Commit

Permalink
'severity' function now falls back to "DEFAULT"
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-githubs committed Dec 4, 2024
1 parent 914ad2f commit 3113297
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def severity(event):
# Else, fallback on the numerical value, falling back on MEDIUM if we still don't have a value
sevval = event.deep_get("event", "Severity") // 20
return {0: "INFO", 1: "LOW", 2: "MEDIUM", 3: "HIGH", 4: "CRITICAL", 5: "CRITICAL"}.get(
sevval, "MEDIUM"
sevval, "DEFAULT"
)


Expand Down

0 comments on commit 3113297

Please sign in to comment.