Signed-off-by: Christian Dupuis <cd@atomist.com>
This commit is contained in:
@@ -85,6 +85,9 @@ func ForBaseImageInIndex(digest digest.Digest, workspace string, apiKey string)
|
||||
CreatedAt: ii.CreatedAt,
|
||||
Tags: manifestList[0].Tags,
|
||||
Repository: *repository,
|
||||
Report: []Report{{
|
||||
Total: -1,
|
||||
}},
|
||||
}
|
||||
return &[]Image{image}, nil
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ type ManifestList struct {
|
||||
}
|
||||
|
||||
type Report struct {
|
||||
Total int64 `edn:"vulnerability.report/total"`
|
||||
Critical int64 `edn:"vulnerability.report/critical"`
|
||||
High int64 `edn:"vulnerability.report/high"`
|
||||
Medium int64 `edn:"vulnerability.report/medium"`
|
||||
|
||||
Reference in New Issue
Block a user