mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-05 20:40:16 -08:00
feat(image): save layers metadata into report (#8394)
Co-authored-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
@@ -153,6 +153,9 @@ func readReport(t *testing.T, filePath string) types.Report {
|
||||
// We don't compare repo tags because the archive doesn't support it
|
||||
report.Metadata.RepoTags = nil
|
||||
report.Metadata.RepoDigests = nil
|
||||
for i := range report.Metadata.Layers {
|
||||
report.Metadata.Layers[i].Digest = ""
|
||||
}
|
||||
|
||||
for i, result := range report.Results {
|
||||
for j := range result.Vulnerabilities {
|
||||
|
||||
Reference in New Issue
Block a user