-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
enhancement(report): include/exclude dev deps in analyzers #7476
enhancement(report): include/exclude dev deps in analyzers #7476
Comments
I don't think it's a bug, but an enhancement. |
It's weird. Test dependencies should not be shown unless |
I think that bugfix should be another PR and backported to v0.55.1, while excluding them in analyzers is an enhancement. |
despite this being an improvement - i would also suggest adding #7484 to the backport, because the speed of Trivy for
I am creating new PR |
#7484 needs some time to review as it is not a small change. We may want to revert the change and cut v0.55.1. |
Looks like you are right... |
I am afraid of merging fixes in a hurry and causing new problems, so it is better to revert once and add fixes carefully, IMHO. |
Description
We detect all dependencies and exclude dev dependencies in
scanner
.This worked well.
But we added
test
scope forpom.xml
files - #7414.And this is a problem for
pom.xml
files, becausepom.xml
file can contain many dependencies, and users always expect all dependencies to be parsed, even if--iclude-dev-deps
flag is missing.More details - #7466
We used this logic to avoid splitting caches.
But
--icnlude-dev-deps
flag is only available forfs
mode. We usememore
cache forfs
mode, so this is not problem.So we need to include/exclude dev deps in analyzers.
Discussed in #7466
The text was updated successfully, but these errors were encountered: