Skip to content

Commit

Permalink
preserve the original else statement for grabbing severity
Browse files Browse the repository at this point in the history
  • Loading branch information
testaccount90009 committed Nov 14, 2024
1 parent e52d08c commit 2272d46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dojo/tools/mend/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ def _build_common_output(node, lib_name=None):
cvss_sev = node.get("cvss3_severity")
elif "vulnerability" in node:
cvss_sev = node["vulnerability"].get("severity")
else:
cvss_sev = node.get("severity")
severity = cvss_sev.lower().capitalize()

cvss3_score = node.get("cvss3_score", None)
Expand Down

0 comments on commit 2272d46

Please sign in to comment.