-
Notifications
You must be signed in to change notification settings - Fork 601
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
Grype inconsistence output squashed and all-layers representation #894
Comments
Hi @workerus, thanks for the report. I am working to reproduce, but I could use a little help. I am using your Dockerfile contents but when I build it, I get:
Removing the "150000.45.8.1" part of the version like this:
...builds successfully, but grype returns 0 vulnerabilities for both commands. Running syft on my image shows me that it's pulling in this version of libtiff-devel:
...which maybe doesn't have the 4 vulnerabilities. I am not a SuSE expert, do you know if perhaps there's a way for me to get a hold of the older version of libtiff-devel? Thanks for the report, and thanks for the help reproducing! Tim |
Thank you Tim @tgerla for checking it. Please try to build image with the following Dockerfile:
and scan this image: ./grype libtiff-devel ./grype libtiff-devel --scope all-layers |
OK, I have it showing the same results now. We will investigate and get back to you. Thanks for the update! |
This should be corrected in the latest Grype release - v0.59.0, please let us know if it is not! |
What happened:
$ grype libtiff_dev:test
:
✔ Cataloged packages [140 packages]
✔ Scanned image [6 vulnerabilities]
$ grype libtiff_dev:test --scope all-layers
:
✔ Cataloged packages [130 packages] <===
✔ Scanned image [0 vulnerabilities] <===
No vulnerabilities found
What you expected to happen:
My understanding correct me if i am wrong is that in the results there should be reported same or more vulnerabilities and packages with "--scope all-layers" option rather than with default squashed scanning.
How to reproduce it (as minimally and precisely as possible):
Build image from Docker file with following content.
and scan the image with two options mentioned above.
Anything else we need to know?:
Environment:
grype version
:$ grype version
Application: grype
Version: 0.47.0
Syft Version: v0.54.0
BuildDate: 2022-08-18T00:35:51Z
GitCommit: 08b4ef4
GitDescription: v0.47.0
Platform: linux/amd64
GoVersion: go1.18.1
Compiler: gc
Supported DB Schema: 4
cat /etc/os-release
or similar):Ubuntu 18.04.5 LTS \n \l
The text was updated successfully, but these errors were encountered: