Skip to content
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

Distroless warnings #361

Open
Kalovelo opened this issue Aug 28, 2024 · 1 comment
Open

Distroless warnings #361

Kalovelo opened this issue Aug 28, 2024 · 1 comment

Comments

@Kalovelo
Copy link

When using a distroless and minimal image, grype output shows warnings of missing files, e.g.

WARN parsing dpkg status: extracting key-value from line: [...]  usr/lib/os-release err: cannot parse field from line: 
[...] usr/lib/os-release' form-lib=syft

Is there a way to mute these false positives, as these are expected to be mising?

@popey
Copy link
Contributor

popey commented Sep 12, 2024

Related: anchore/grype#86

Do you still get the WARNs if you pass a -q?

The warning is somewhat intentional, as it's an indicator that Grype wasn't able to detect the distro (check the above related issue) and if we are silent about that, we may also not highlight other things we didn't find as a result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants