trivy convert always filters non-failures #8420
Closed
martinclaus
started this conversation in
Bugs
Replies: 4 comments 2 replies
-
|
I just tried to use following misconfiguration:
# Same as '--include-non-failures'
# Default is false
include-non-failures: truebut 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.
2 replies
-
|
Track #8670 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
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 convertcommand. 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:latestshare 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 --allBeta Was this translation helpful? Give feedback.
All reactions