diff --git a/plugin/src/main/java/org/owasp/benchmarkutils/score/parsers/SemgrepReader.java b/plugin/src/main/java/org/owasp/benchmarkutils/score/parsers/SemgrepReader.java index bd7e86b..f9464f7 100644 --- a/plugin/src/main/java/org/owasp/benchmarkutils/score/parsers/SemgrepReader.java +++ b/plugin/src/main/java/org/owasp/benchmarkutils/score/parsers/SemgrepReader.java @@ -144,8 +144,6 @@ public static int translate(int cwe) { return CweNumber.XXE; case 614: return CweNumber.INSECURE_COOKIE; - case 1004: - return CweNumber.COOKIE_WITHOUT_HTTPONLY; case 643: return CweNumber.XPATH_INJECTION; case 1004: diff --git a/plugin/src/test/java/org/owasp/benchmarkutils/score/parsers/sarif/SemgrepSarifReaderTest.java b/plugin/src/test/java/org/owasp/benchmarkutils/score/parsers/sarif/SemgrepSarifReaderTest.java index 08fbc5f..b522e05 100644 --- a/plugin/src/test/java/org/owasp/benchmarkutils/score/parsers/sarif/SemgrepSarifReaderTest.java +++ b/plugin/src/test/java/org/owasp/benchmarkutils/score/parsers/sarif/SemgrepSarifReaderTest.java @@ -77,20 +77,4 @@ void readerHandlesSemgrepPROResultFile() throws Exception { assertEquals(CweNumber.COOKIE_WITHOUT_HTTPONLY, result.get("1").get(0).getCWE()); assertEquals(CweNumber.XSS, result.get("2").get(0).getCWE()); } - - @Test - void readerHandlesSemgrepPROResultFile() throws Exception { - SemgrepSarifReader reader = new SemgrepSarifReader(); - TestSuiteResults result = reader.parse(resultFilePRO); - - assertEquals(TestSuiteResults.ToolType.SAST, result.getToolType()); - assertFalse(result.isCommercial()); - assertEquals("Semgrep PRO", result.getToolName()); - assertEquals("1.68.1", result.getToolVersion()); - - assertEquals(2, result.getTotalResults()); - - assertEquals(CweNumber.COOKIE_WITHOUT_HTTPONLY, result.get(1).get(0).getCWE()); - assertEquals(CweNumber.XSS, result.get(2).get(0).getCWE()); - } }