feat(alpine-unfixed): add cpe (#106)
This commit is contained in:
parent
7d2eb302d1
commit
127afe7c71
@ -22,5 +22,13 @@
|
||||
"packageName": "jenkins",
|
||||
"packageVersion": "2.297-r0"
|
||||
}
|
||||
],
|
||||
"cpeMatch": [
|
||||
{
|
||||
"maximumVersion": "",
|
||||
"maximumVersionOp": "==",
|
||||
"minimumVersion": "",
|
||||
"minimumVersionOp": "=="
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,8 +1,9 @@
|
||||
package alpineunfixed
|
||||
|
||||
type unfixedVulnerability struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
States []state `json:"state,omitempty"`
|
||||
ID string `json:"id,omitempty"`
|
||||
States []state `json:"state,omitempty"`
|
||||
CPEMatch []cpeMatch `json:"cpeMatch"`
|
||||
}
|
||||
|
||||
type state struct {
|
||||
@ -12,3 +13,10 @@ type state struct {
|
||||
PackageName string `json:"packageName"`
|
||||
PackageVersion string `json:"packageVersion"`
|
||||
}
|
||||
|
||||
type cpeMatch struct {
|
||||
MinVersion string `json:"minimumVersion"`
|
||||
MinVersionOps string `json:"minimumVersionOp"`
|
||||
MaxVersion string `json:"maximumVersion"`
|
||||
MaxVersionOps string `json:"maximumVersionOp"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user