Skip to content

Commit

Permalink
fix: Gitlab report format needs severity capitalized
Browse files Browse the repository at this point in the history
  • Loading branch information
weyhmueller committed Dec 1, 2023
1 parent 857c377 commit 3ff276b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/resources/templates/gitlabReport.vsl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
## optional properties
"name": "$enc.json($vulnerability.name)",
"description": "$enc.json($vulnerability.description)",
"severity": "$rpt.normalizeSeverity($vulnerability.cvssV3.cvssData.baseSeverity).toLowerCase()",
#set($severity = $rpt.normalizeSeverity($vulnerability.cvssV3.cvssData.baseSeverity))
"severity": "$severity.substring(0,1).toUpperCase()$severity.substring(1)",
## "solution": "" --> not implemented
"links": [
#foreach( $ref in $vulnerability.getReferences(true) )
Expand Down

0 comments on commit 3ff276b

Please sign in to comment.