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
There are cases when summary report doesn't contain information about vulnerabilities.
summary
For consolidated report Trivy looks for vulns and secrets only in the first result. The second and next results are skipped now.
https://github.com/aquasecurity/trivy/blob/main/pkg/k8s/report/report.go#L282-L283
#!/bin/sh kind delete cluster && kind create cluster kubectl cluster-info kubectl wait --for=condition=Ready nodes --all --timeout=300s kubectl create namespace test kubectl create -f pod.yaml trivy k8s --report summary --include-namespaces test
pod.yaml:
pod.yaml
apiVersion: v1 kind: Pod metadata: namespace: test name: postgres-pod spec: containers: - name: postgres image: postgres:15-alpine3.19 ports: - containerPort: 5432 env: - name: POSTGRES_USER value: "admin" - name: POSTGRES_PASSWORD value: "password" - name: POSTGRES_DB value: "exampledb"
The text was updated successfully, but these errors were encountered:
simar7
afdesk
Successfully merging a pull request may close this issue.
Description
There are cases when
summary
report doesn't contain information about vulnerabilities.Reason
For consolidated report Trivy looks for vulns and secrets only in the first result.
The second and next results are skipped now.
https://github.com/aquasecurity/trivy/blob/main/pkg/k8s/report/report.go#L282-L283
Reproduction steps:
pod.yaml
:Discussed in #7927
The text was updated successfully, but these errors were encountered: