Skip to content

Commit 6cff215

Browse files
paulcacheuxfrank-spano
authored andcommitted
[CSPM] remove image_repo from container image (#39343)
1 parent 50eecf9 commit 6cff215

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

pkg/compliance/resolver.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -590,14 +590,10 @@ func (r *defaultResolver) resolveDocker(ctx context.Context, spec InputSpecDocke
590590
if err != nil {
591591
return nil, err
592592
}
593-
// Ignore deprecation warning
594-
//nolint:staticcheck
595-
imageRepo := parseImageRepo(image.ContainerConfig.Image)
596593
resolved = append(resolved, map[string]interface{}{
597-
"id": image.ID,
598-
"tags": image.RepoTags,
599-
"image_repo": imageRepo,
600-
"inspect": image,
594+
"id": image.ID,
595+
"tags": image.RepoTags,
596+
"inspect": image,
601597
})
602598
}
603599
case "container":

0 commit comments

Comments
 (0)