Skip to content

Commit

Permalink
Fixed: severity filter uses vulnerability severity instead of finding…
Browse files Browse the repository at this point in the history
… severity (#100)

* Using finding (aka Result) severity for filtering - instead of findingGroup (aka Query) severity.

* Updated the version.
  • Loading branch information
alex-ko-dev committed Mar 3, 2021
1 parent b54a1bf commit 4464a1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.github.checkmarx-ltd</groupId>
<artifactId>cx-spring-boot-sdk</artifactId>
<version>0.4.91</version>
<version>0.4.92</version>
<name>cx-spring-boot-sdk</name>
<description>Checkmarx Java Spring Boot SDK</description>
<properties>
Expand Down Expand Up @@ -41,11 +41,6 @@
<artifactId>commons-compress</artifactId>
<version>1.20</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.11</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public FilterInput createFilterInputForCxSast(QueryType findingGroup, ResultType
.id(finding.getNodeId())
.category(findingGroup.getName().toUpperCase(Locale.ROOT))
.cwe(findingGroup.getCweId())
.severity(findingGroup.getSeverity().toUpperCase(Locale.ROOT))
.severity(finding.getSeverity().toUpperCase(Locale.ROOT))
.status(finding.getStatus().toUpperCase(Locale.ROOT))
.state(stateName)
.build();
Expand Down

0 comments on commit 4464a1d

Please sign in to comment.