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 Dec 7, 2023
1 parent 7d2713f commit fe3a904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

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

type Service struct {
Expand Down

0 comments on commit fe3a904

Please sign in to comment.