Skip to content

Commit

Permalink
[bug] severity needs to be of the form "Medium", not "MEDIUM"
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasfi authored and jeremylong committed Nov 21, 2023
1 parent 1bbc54e commit 5d6a6fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private String determineScore(Vulnerability vuln) {
return "Unknown";
}

private String normalizeSeverity(String sev) {
public String normalizeSeverity(String sev) {
switch (sev) {
case "critical":
return "Critical";
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/templates/gitlabReport.vsl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
## optional properties
"name": "$enc.json($vulnerability.name)",
"description": "$enc.json($vulnerability.description)",
"severity": "$enc.json($vulnerability.cvssV3.getBaseSeverity())",
"severity": "$rpt.normalizeSeverity($vulnerability.cvssV3.getBaseSeverity().toLowerCase())",
## "solution": "" --> not implemented
"links": [
#foreach( $ref in $vulnerability.getReferences(true) )
Expand Down

0 comments on commit 5d6a6fd

Please sign in to comment.