Trivy is not working properly with yarn workspaces #4633
Labels
kind/bug
Categorizes issue or PR as related to a bug.
scan/vulnerability
Issues relating to vulnerability scanning
Discussed in #4632
Originally posted by nikpivkin June 14, 2023
Description
I scanned the project with yarn workspaces, but Trivy does not find vulnerabilities and dependencies. I created a repository to make it easier to reproduce.
When using workspaces, yarn creates
yarn.lock
only in the root of the monorepository. And since thepackage.json
does not contain information about dependencies in workspaces, they are skipped.If I skip
package.json
when scanning, then everything will be ok.Desired Behavior
Dependencies will be detected
Actual Behavior
No dependencies found
Reproduction Steps
Target
None
Scanner
None
Output Format
None
Mode
Standalone
Debug Output
Operating System
macos
Version
Checklist
trivy --reset
The text was updated successfully, but these errors were encountered: