mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 07:40:48 -08:00
feat(image): add RepoTags support for Docker archives (#9690)
Co-authored-by: knqyf263 <knqyf263@users.noreply.github.com>
This commit is contained in:
@@ -89,6 +89,12 @@ func (a Artifact) Inspect(ctx context.Context) (artifact.Reference, error) {
|
||||
Type: artifactType,
|
||||
ID: cacheKey, // use a cache key as pseudo artifact ID
|
||||
BlobIDs: []string{cacheKey},
|
||||
ImageMetadata: artifact.ImageMetadata{
|
||||
ID: bom.Metadata.ImageID,
|
||||
DiffIDs: bom.Metadata.DiffIDs,
|
||||
RepoTags: bom.Metadata.RepoTags,
|
||||
RepoDigests: bom.Metadata.RepoDigests,
|
||||
},
|
||||
|
||||
// Keep an original report
|
||||
BOM: bom.BOM,
|
||||
|
||||
Reference in New Issue
Block a user