feat(alpine-unfixed): add cpe (#106)

This commit is contained in:
Teppei Fukuda 2021-09-16 22:18:29 +03:00 committed by GitHub
parent 7d2eb302d1
commit 127afe7c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 2 deletions

View File

@ -22,5 +22,13 @@
"packageName": "jenkins", "packageName": "jenkins",
"packageVersion": "2.297-r0" "packageVersion": "2.297-r0"
} }
],
"cpeMatch": [
{
"maximumVersion": "",
"maximumVersionOp": "==",
"minimumVersion": "",
"minimumVersionOp": "=="
}
] ]
} }

View File

@ -3,6 +3,7 @@ package alpineunfixed
type unfixedVulnerability struct { type unfixedVulnerability struct {
ID string `json:"id,omitempty"` ID string `json:"id,omitempty"`
States []state `json:"state,omitempty"` States []state `json:"state,omitempty"`
CPEMatch []cpeMatch `json:"cpeMatch"`
} }
type state struct { type state struct {
@ -12,3 +13,10 @@ type state struct {
PackageName string `json:"packageName"` PackageName string `json:"packageName"`
PackageVersion string `json:"packageVersion"` PackageVersion string `json:"packageVersion"`
} }
type cpeMatch struct {
MinVersion string `json:"minimumVersion"`
MinVersionOps string `json:"minimumVersionOp"`
MaxVersion string `json:"maximumVersion"`
MaxVersionOps string `json:"maximumVersionOp"`
}