Skip to content

Commit

Permalink
Use uv
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed Feb 18, 2025
1 parent 2f1c2f7 commit 96be1ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions depscan/lib/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,13 +1176,13 @@ def parse_metrics(metrics):
vector = metric.cvssV4_0.vectorString
method = "CVSSv4"
severity = metric.cvssV4_0.baseSeverity.value
score = metric.cvssV4_0.baseScore.root
score = metric.cvssV4_0.baseScore.value
break
elif method != "CVSSv31" and (m := (metric.cvssV3_1 or metric.cvssV3_0)):
vector = m.vectorString
method = "CVSSv31" if m.version.value == "3.1" else "CVSSv3"
severity = m.baseSeverity.value
score = m.baseScore.root
score = m.baseScore.value
return vector, method, severity, score


Expand Down

0 comments on commit 96be1ea

Please # to comment.