Skip to content

Commit

Permalink
feat(spec1-5): add support for ssvc scoring method
Browse files Browse the repository at this point in the history
Signed-off-by: nscuro <nscuro@protonmail.com>
  • Loading branch information
nscuro committed Jun 21, 2023
1 parent 9f77462 commit 5fcf21c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion convert.go
Expand Up @@ -405,7 +405,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
}

Expand Down
1 change: 1 addition & 0 deletions cyclonedx.go
Expand Up @@ -536,6 +536,7 @@ const (
ScoringMethodCVSSv31 ScoringMethod = "CVSSv31"
ScoringMethodCVSSv4 ScoringMethod = "CVSSv4"
ScoringMethodOWASP ScoringMethod = "OWASP"
ScoringMethodSSVC ScoringMethod = "SSVC"
)

type Service struct {
Expand Down

0 comments on commit 5fcf21c

Please sign in to comment.