Only one dependency file is scanned #4580
Closed
dmytrozelonkin
started this conversation in
Bugs
Replies: 3 comments 9 replies
-
It only happens if I have multiple dependency files in root directory. If I move both files to subfolder it works fine... |
Beta Was this translation helpful? Give feedback.
8 replies
-
I also want to notice you that your bug creation checklist has the following step "Run trivy --reset" but when I run that I got the next error: FATAL unknown flag: --reset . |
Beta Was this translation helpful? Give feedback.
1 reply
-
created #4629 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I have two dependency files in the root directory of my project: composer.lock & yarn.lock .
When I do check I see the next result:
As you can see trivy detected 2 dependency files but I see result only for composer.lock.
Now I move yarn.lock file to subdirectory and run scanning again.
I believe it is an issue and trivy should scan all dependency files in one directory.
Desired Behavior
Both files should be scanned in the root directory.
Actual Behavior
Only one files is scanned.
Reproduction Steps
Described in the description section.
Target
Filesystem
Scanner
Vulnerability
Output Format
None
Mode
None
Debug Output
Added in the description section
Operating System
macOS
Version
Checklist
trivy --reset
Beta Was this translation helpful? Give feedback.
All reactions