Skip to content

Commit

Permalink
🐛 fix semgrep severity logic #11218
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer committed Nov 7, 2024
1 parent 50d01bd commit 5c1450a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions dojo/tools/semgrep/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,6 @@ def convert_severity(self, val):
if upper_value == "LOW":
return "Low"
if upper_value == "INFO":
if "WARNING" == val.upper():
return "Medium"
if "ERROR" == val.upper() or "HIGH" == val.upper():
return "High"
if "INFO" == val.upper():
return "Info"

Check failure on line 143 in dojo/tools/semgrep/parser.py

View workflow job for this annotation

GitHub Actions / ruff-linting

Ruff (E117)

dojo/tools/semgrep/parser.py:143:1: E117 Over-indented
msg = f"Unknown value for severity: {val}"
raise ValueError(msg)
Expand Down

0 comments on commit 5c1450a

Please sign in to comment.