Replies: 7 comments
-
FYI I do have the exit code set to 1. |
Beta Was this translation helpful? Give feedback.
-
@jeff-cook Thank you for filing the issue. A normal image won't cause that error. For example, busybox causes the error, but busybox doesn't have a package manager and Trivy can't find installed OS packages anyway. In what cases do you want to detect the error? I mean there's almost nothing you could do about vulnerability detection even if you detect it. |
Beta Was this translation helpful? Give feedback.
-
Primarily I want to have someway to report it with in the CI pipeline. For me that means two options.
A few other warnings I see that would be helpful in the JUnit report. This would be to warn the developer the Trivy scan had issues and was not able to provide vulnerability details. |
Beta Was this translation helpful? Give feedback.
-
As a workaround I could look at wrapping Trivy in a testing framework, such as bats. |
Beta Was this translation helpful? Give feedback.
-
In other words, what's your next step if you detect "No OS package is detected" warning? Do you replace a base image? Actually, it's just a fact than a scanning issue. |
Beta Was this translation helpful? Give feedback.
-
Possible replace the base image, or find why no packages are reported. The issue is by looking at the report all you see is there are no vulnerabilities. Which is not true. I agree it is a fact. How can we include a fact in the output? |
Beta Was this translation helpful? Give feedback.
-
This issue is stale because it has been labeled with inactivity. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to add an issue/failure to a report template for issues in the scan such as
No OS package is detected
?What I'm running into is when this happens the scan doesn't fail (exit code other than 0), and the (JUnit) report doesn't report any failures. So there is no feedback to show there is an issue.
Not being able to report on vulnerabilities is very different from not having any vulnerabilities.
How can I report this issue into my CI pipeline? I'm sure someone has solved, this but I couldn't find any docs on the issue.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions