We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to reproduce:
kubectl -n default run nginx --image=nginx:latest --port=80 trivy k8s -n default all --format json -o nginx_1.json trivy image nginx:latest --format json -o nginx_2.json
Open file nginx_1.json: Console screen in my browser (firefox):
Open file nginx_2.json:
Trivy version:
➜ ~ trivy -v Version: 0.38.3 Vulnerability DB: Version: 2 UpdatedAt: 2023-04-03 06:07:03.052991494 +0000 UTC NextUpdate: 2023-04-03 12:07:03.052991094 +0000 UTC DownloadedAt: 2023-04-03 08:22:47.072403 +0000 UTC Policy Bundle: Digest: sha256:2f95caeff50df1f00efdf5cb619c3b5488bbbb9bb08ef0890f52352464d35c79 DownloadedAt: 2023-04-03 08:22:48.363111 +0000 UTC
cat nginx_1.json
{ "ClusterName": "dev", "Vulnerabilities": [ { "Namespace": "default", "Kind": "Pod", "Name": "nginx", "Results": [ { "Target": "nginx:latest (debian 11.6)", "Class": "os-pkgs", "Type": "debian", "Vulnerabilities": [ { "VulnerabilityID": "CVE-2011-3374", "PkgID": "[email protected]", "PkgName": "apt", "InstalledVersion": "2.2.4", "Layer": { "Digest": "sha256:f1f26f5702560b7e591bef5c4d840f76a232bf13fd5aefc4e22077a1ae4440c7", "DiffID": "sha256:3af14c9a24c941c626553628cf1942dcd94d40729777f2fcfbcd3b8a3dfccdd6" },
cat nginx_2.json:
{ "SchemaVersion": 2, "ArtifactName": "nginx:latest", "ArtifactType": "container_image", "Metadata": { "OS": { "Family": "debian", "Name": "11.6" }, "ImageID": "sha256:080ed0ed8312deca92e9a769b518cdfa20f5278359bd156f3469dd8fa532db6b", "DiffIDs": [ "sha256:3af14c9a24c941c626553628cf1942dcd94d40729777f2fcfbcd3b8a3dfccdd6", "sha256:af29ec691175380d67613953dfb815a47cbcdc5a10221ab1047668cda2efc9ee", "sha256:a0b795906dc1f8bb47568da6335c0b5e5049aefc9b0bf3bfe6a9a90e55e8ca36", "sha256:95457f8a16fd7d0e872c8ccd8ffa84b79b8aa56a39ca5a84bf54c1fab9bac712", "sha256:4d0bf5b5e17b1bf57a06893ca4cdb58189efcf348b817d33850aa04ab403e4f1", "sha256:ff4557f62768fd99a55c9596bcc2ade44045c47a089a898a14d73b50a306c74d" ], "RepoTags": [ "nginx:latest" ], "RepoDigests": [ "nginx@sha256:2ab30d6ac53580a6db8b657abf0f68d75360ff5cc1670a85acb5bd85ba1b19c0" ], "ImageConfig": { "architecture": "amd64", "container": "2e6cfff5afd6bd5a85faf12b14aa18cc04ed32b06732965bb133022ef85ba5c2", "created": "2023-03-28T22:20:09.76950724Z", "docker_version": "20.10.23", "history": [ { "created": "2023-03-23T01:30:27.508854764Z", "created_by": "/bin/sh -c #(nop) ADD file:60911afdacfdc216e44115addb5f3cc07f4166e8a4adf7be94a58aacc327ad63 in / " },
The text was updated successfully, but these errors were encountered:
Please take a look at #386. I am closing this as a duplicate, but please feel free to continue the discussion there.
Sorry, something went wrong.
No branches or pull requests
How to reproduce:
Open file nginx_1.json:
Console screen in my browser (firefox):
Open file nginx_2.json:
Trivy version:
cat nginx_1.json
cat nginx_2.json:
The text was updated successfully, but these errors were encountered: