What steps did you take and what happened:
[A clear and concise description of what the bug is.]
{"level":"error","ts":1680803506.314774,"logger":"scanner","msg":"error scanning image","provider":"trivy","imageID":"sha256:20cc4e240a565a9aefdb24907d4481a2953639e95bf15fcf86854c0a5639b5f7","reference":"mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.24.3-hotfix.20221216.1","error":"failed analysis: analyze error: failed to analyze layer: : walk error: failed to extract the archive: archive/tar: invalid tar header","errorVerbose":"failed analysis:\n github.com/aquasecurity/trivy/pkg/scanner.Scanner.ScanArtifact\n /go/pkg/mod/github.com/aquasecurity/trivy@v0.35.0/pkg/scanner/scan.go:140\n - analyze error:\n github.com/aquasecurity/trivy/pkg/fanal/artifact/image.Artifact.Inspect\n /go/pkg/mod/github.com/aquasecurity/trivy@v0.35.0/pkg/fanal/artifact/image/image.go:126\n - failed to analyze layer: :\n github.com/aquasecurity/trivy/pkg/fanal/artifact/image.Artifact.inspect.func1\n /go/pkg/mod/github.com/aquasecurity/trivy@v0.35.0/pkg/fanal/artifact/image/image.go:228\n - walk error:\n github.com/aquasecurity/trivy/pkg/fanal/artifact/image.Artifact.inspectLayer\n /go/pkg/mod/github.com/aquasecurity/trivy@v0.35.0/pkg/fanal/artifact/image/image.go:283\n - failed to extract the archive:\n github.com/aquasecurity/trivy/pkg/fanal/walker.LayerTar.Walk\n /go/pkg/mod/github.com/aquasecurity/trivy@v0.35.0/pkg/fanal/walker/tar.go:44\n - archive/tar: invalid tar header","stacktrace":"main.(*ImageScanner).Scan\n\t/workspace/pkg/scanners/trivy/types.go:142\nmain.scan\n\t/workspace/pkg/scanners/trivy/trivy.go:285\nmain.main\n\t/workspace/pkg/scanners/trivy/trivy.go:160\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250"}
What did you expect to happen:
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
What steps did you take and what happened: [A clear and concise description of what the bug is.]
{"level":"error","ts":1680803506.314774,"logger":"scanner","msg":"error scanning image","provider":"trivy","imageID":"sha256:20cc4e240a565a9aefdb24907d4481a2953639e95bf15fcf86854c0a5639b5f7","reference":"mcr.microsoft.com/oss/kubernetes/kube-proxy:v1.24.3-hotfix.20221216.1","error":"failed analysis: analyze error: failed to analyze layer: : walk error: failed to extract the archive: archive/tar: invalid tar header","errorVerbose":"failed analysis:\n github.com/aquasecurity/trivy/pkg/scanner.Scanner.ScanArtifact\n /go/pkg/mod/github.com/aquasecurity/trivy@v0.35.0/pkg/scanner/scan.go:140\n - analyze error:\n github.com/aquasecurity/trivy/pkg/fanal/artifact/image.Artifact.Inspect\n /go/pkg/mod/github.com/aquasecurity/trivy@v0.35.0/pkg/fanal/artifact/image/image.go:126\n - failed to analyze layer: :\n github.com/aquasecurity/trivy/pkg/fanal/artifact/image.Artifact.inspect.func1\n /go/pkg/mod/github.com/aquasecurity/trivy@v0.35.0/pkg/fanal/artifact/image/image.go:228\n - walk error:\n github.com/aquasecurity/trivy/pkg/fanal/artifact/image.Artifact.inspectLayer\n /go/pkg/mod/github.com/aquasecurity/trivy@v0.35.0/pkg/fanal/artifact/image/image.go:283\n - failed to extract the archive:\n github.com/aquasecurity/trivy/pkg/fanal/walker.LayerTar.Walk\n /go/pkg/mod/github.com/aquasecurity/trivy@v0.35.0/pkg/fanal/walker/tar.go:44\n - archive/tar: invalid tar header","stacktrace":"main.(*ImageScanner).Scan\n\t/workspace/pkg/scanners/trivy/types.go:142\nmain.scan\n\t/workspace/pkg/scanners/trivy/trivy.go:285\nmain.main\n\t/workspace/pkg/scanners/trivy/trivy.go:160\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250"}
What did you expect to happen:
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
): v1.24