Skip to content

Commit

Permalink
feat(models): add new cveContentType trivy:azure (future-architect#2006)
Browse files Browse the repository at this point in the history
  • Loading branch information
TsubasaKanemitsu authored Aug 14, 2024
1 parent 5858b0a commit 3d01ed8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion models/cvecontents.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ func NewCveContentType(name string) CveContentType {
return TrivyFedora
case "trivy:amazon":
return TrivyAmazon
case "trivy:azure":
return TrivyAzure
case "trivy:oracle-oval":
return TrivyOracleOVAL
case "trivy:suse-cvrf":
Expand Down Expand Up @@ -417,7 +419,7 @@ func GetCveContentTypes(family string) []CveContentType {
case constant.Windows:
return []CveContentType{Microsoft}
case string(Trivy):
return []CveContentType{Trivy, TrivyNVD, TrivyRedHat, TrivyRedHatOVAL, TrivyDebian, TrivyUbuntu, TrivyCentOS, TrivyRocky, TrivyFedora, TrivyAmazon, TrivyOracleOVAL, TrivySuseCVRF, TrivyAlpine, TrivyArchLinux, TrivyAlma, TrivyCBLMariner, TrivyPhoton, TrivyRubySec, TrivyPhpSecurityAdvisories, TrivyNodejsSecurityWg, TrivyGHSA, TrivyGLAD, TrivyOSV, TrivyWolfi, TrivyChainguard, TrivyBitnamiVulndb, TrivyK8sVulnDB, TrivyGoVulnDB}
return []CveContentType{Trivy, TrivyNVD, TrivyRedHat, TrivyRedHatOVAL, TrivyDebian, TrivyUbuntu, TrivyCentOS, TrivyRocky, TrivyFedora, TrivyAmazon, TrivyAzure, TrivyOracleOVAL, TrivySuseCVRF, TrivyAlpine, TrivyArchLinux, TrivyAlma, TrivyCBLMariner, TrivyPhoton, TrivyRubySec, TrivyPhpSecurityAdvisories, TrivyNodejsSecurityWg, TrivyGHSA, TrivyGLAD, TrivyOSV, TrivyWolfi, TrivyChainguard, TrivyBitnamiVulndb, TrivyK8sVulnDB, TrivyGoVulnDB}
default:
return nil
}
Expand Down Expand Up @@ -502,6 +504,9 @@ const (
// TrivyAmazon is TrivyAmazon
TrivyAmazon CveContentType = "trivy:amazon"

// TrivyAzure is TrivyAzure
TrivyAzure CveContentType = "trivy:azure"

// TrivyOracleOVAL is TrivyOracle
TrivyOracleOVAL CveContentType = "trivy:oracle-oval"

Expand Down Expand Up @@ -592,6 +597,7 @@ var AllCveContetTypes = CveContentTypes{
TrivyRocky,
TrivyFedora,
TrivyAmazon,
TrivyAzure,
TrivyOracleOVAL,
TrivySuseCVRF,
TrivyAlpine,
Expand Down

0 comments on commit 3d01ed8

Please sign in to comment.