From 5c1450a5d285085d2ef737b2ab9adef9a23376b8 Mon Sep 17 00:00:00 2001 From: Manuel Sommer Date: Thu, 7 Nov 2024 23:43:37 +0100 Subject: [PATCH] :bug: fix semgrep severity logic #11218 --- dojo/tools/semgrep/parser.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dojo/tools/semgrep/parser.py b/dojo/tools/semgrep/parser.py index 883fcc4f31a..be630f8c57a 100644 --- a/dojo/tools/semgrep/parser.py +++ b/dojo/tools/semgrep/parser.py @@ -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" msg = f"Unknown value for severity: {val}" raise ValueError(msg)