Skip to content

Commit 31c1a87

Browse files
committed
Add AttributeImageHash constant and ImagesHashes field to AggregatedVulnerability struct
1 parent 9207772 commit 31c1a87

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

identifiers/designators.go

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ const (
108108
AttribueCloudProvider = "cloudProvider"
109109
AttributeService = "service"
110110
AttributeRegion = "region"
111+
AttributeImageHash = "imageHash"
111112
)
112113

113114
// Repository scan related attributes

notifications/vulnerability.go

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type AggregatedVulnerability struct {
1717
WorkloadHashes []string `json:"workloadHashes,omitempty" bson:"workloadHashes,omitempty"`
1818
Workloads []string `json:"workloads,omitempty" bson:"workloads,omitempty"`
1919
Images []string `json:"images,omitempty" bson:"images,omitempty"`
20+
ImagesHashes []string `json:"imagesHashes,omitempty" bson:"imagesHashes,omitempty"`
2021
WLIDS []string `json:"wlids,omitempty" bson:"wlids,omitempty"`
2122
CVELink string `json:"cveLink,omitempty" bson:"cveLink,omitempty"`
2223
Fixable bool `json:"fixable" bson:"fixable"`

0 commit comments

Comments
 (0)