-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
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
Return non failing exit code if unsupported os found #470
Conversation
Did you try scanning a scratch image? It doesn't work in my environment. |
|
OK. let me summarize the problems. First of all, this implementation ignores all errors from scanner.Scan. So, all errors say
It says the following in master branch
If the database is corrupted, it says
There are a lot of cases ignoring important errors. Also, I think they want to scan application dependencies even if the base OS is not supported by Trivy.
|
Signed-off-by: Simarpreet Singh <[email protected]>
6fb1735
to
676d244
Compare
Good points. Thanks. I have addressed them.
What should be the acceptance criteria / desired behaviour here? |
A vulnerability of libraries used by programming language should be detected. In the above case, we should detect vulnerabilities in Cargo.lock and ignore OS packages. If we do it, we may be able to support DockerSlim as well. |
We should test busybox image including a lock file as well. |
I added this aquasecurity/fanal#103
Supporting DockerSlim and Busybox will take some additional work that is outside the scope of this issue. I would vote in the favour of merging this PR and working on them as separate stories. |
I felt it was easy to support Docker Slim and Busybox as much as this PR, so I implemented it in #476 to replace this PR. The change is only a few lines. Let me know if I'm missing something important. |
Ah I see your point. I wanted to say that this PR was not going to add support for "scanning vulnerabilities" in busybox and dockerslim images. Maybe I was not clear. Either way, let's scrap this and move over to your PR. |
Co-authored-by: DmitriyLewen <[email protected]>
Co-authored-by: DmitriyLewen <[email protected]>
Resolves aquasecurity#470 Signed-off-by: Liam Galvin <[email protected]>
Fixes: #8
Signed-off-by: Simarpreet Singh [email protected]