Unexpected JSON output when --report summary
is set in trivy k8s
for multi-container workloads
#5889
Closed
2 tasks done
Labels
kind/bug
Categorizes issue or PR as related to a bug.
target/kubernetes
Issues relating to kubernetes cluster scanning
Discussed in #5886
Originally posted by matheusfm January 5, 2024
Description
The command
trivy k8s
returns an unexpected JSON for multi-container workloads when--report summary
is provided.Desired Behavior
The expected output is separate items for each image, just as it is returned when the
--report summary
flag is not provided.Actual Behavior
Currently, results from different images are returned together when
--report summary
flag is provided and the second image's metadata are not returned.Reproduction Steps
Target
Kubernetes
Scanner
Vulnerability
Output Format
JSON
Mode
Standalone
Debug Output
Operating System
linux ubuntu
Version
Checklist
trivy image --reset
The text was updated successfully, but these errors were encountered: