From fe3a9040862e5fa088e84efb004fd9e338a783d7 Mon Sep 17 00:00:00 2001 From: nscuro Date: Wed, 21 Jun 2023 22:19:29 +0200 Subject: [PATCH] feat(spec1-5): add support for ssvc scoring method Signed-off-by: nscuro --- convert.go | 2 +- cyclonedx.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/convert.go b/convert.go index cfe5217..b874214 100644 --- a/convert.go +++ b/convert.go @@ -421,7 +421,7 @@ func (sv SpecVersion) supportsScoringMethod(method ScoringMethod) bool { switch method { case ScoringMethodCVSSv2, ScoringMethodCVSSv3, ScoringMethodCVSSv31, ScoringMethodOWASP, ScoringMethodOther: return sv >= SpecVersion1_4 - case ScoringMethodCVSSv4: + case ScoringMethodCVSSv4, ScoringMethodSSVC: return sv >= SpecVersion1_5 } diff --git a/cyclonedx.go b/cyclonedx.go index 5113af9..a71fe19 100644 --- a/cyclonedx.go +++ b/cyclonedx.go @@ -539,6 +539,7 @@ const ( ScoringMethodCVSSv31 ScoringMethod = "CVSSv31" ScoringMethodCVSSv4 ScoringMethod = "CVSSv4" ScoringMethodOWASP ScoringMethod = "OWASP" + ScoringMethodSSVC ScoringMethod = "SSVC" ) type Service struct {