trivy convert always filters non-failures #8420
martinclaus
started this conversation in
Bugs
Replies: 3 comments
-
I just tried to use following misconfiguration:
# Same as '--include-non-failures'
# Default is false
include-non-failures: true but without any success. The behavior is the same. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @martinclaus ! Thanks for the report. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think there are two ways:
WDYT? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
In an CI Job, I am creating a single trivy misconfiguration scan report in JSON Format and then convert this report into different formats using the
trivy convert
command. The original JSON report is configured to contain also non-failures, however, the reports resulting from conversion do not contain any non-failures.This is behavior disadvantageous, if you generate a JUnit Report, since the CI, which is capable of integrating theses reports in the pipeline UI, will not show the checks that has been passed. And it is particularly confusing if all checks have been passed but none are displayed.
Desired Behavior
I expect that
and
Produce identical files
report.junit.xml
.Actual Behavior
Reports of a Dockerfile containing only
FROM alpine:latest
share the failed but lack the passed test cases:Reproduction Steps
Target
Filesystem
Scanner
Misconfiguration
Output Format
Template
Mode
Standalone
Debug Output
Operating System
Linux
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions