Skip to content

Commit 5f98c28

Browse files
committed
style(rules): Use colons in CVSS score strings
This is a preparation for a sequential commit where CVSS:3.1 and CVS:4.0 comparator functions will be added. Signed-off-by: Thomas Steenbergen <opensource@steenbe.nl>
1 parent d391cd0 commit 5f98c28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

evaluator.rules.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,10 +1546,10 @@ fun RuleSet.vulnerabilityWithHighSeverityInDependencyRule() = packageRule("HIGH_
15461546
-isProject()
15471547
-isExcluded()
15481548
+AnyOf(
1549-
hasVulnerability(maxAcceptedSeverity, "CVSS2") { value, threshold ->
1549+
hasVulnerability(maxAcceptedSeverity, "CVSS:2") { value, threshold ->
15501550
value.toFloat() >= threshold.toFloat()
15511551
},
1552-
hasVulnerability(maxAcceptedSeverity, "CVSS3") { value, threshold ->
1552+
hasVulnerability(maxAcceptedSeverity, "CVSS:3") { value, threshold ->
15531553
value.toFloat() >= threshold.toFloat()
15541554
}
15551555
)

0 commit comments

Comments
 (0)