-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
yarn audit doesn't report vulnerable dependencies in a yarn workspace package #6625
Comments
Ping @rally25rs? |
Looks like this ends up happening because the root package doesn't have a real If the root workspace is named
and a single workspace package then what we send to the npm api is:
the |
what is |
@gdamjan "category - bug". It's just a tag we use to track what issues are confirmed bugs, which are feature requests, etc. |
…be audited. This change takes the packages that are included as part of the workspace and adds them to what is sent to the npm audit api. fixes yarnpkg#6625
Do you want to request a feature or report a bug?
bug
What is the current behavior?
yarn audit doesn't report vulnerable dependencies in a yarn workspace package, even though the vulnerable package is listed in yarn.lock
If the current behavior is a bug, please provide the steps to reproduce.
make a repo using yarn workspaces, add minimatch@3.0.0 as a dependency in one of the workspaces, run
yarn install
andyarn audit
Here's an example repo that reproduces the issue:
https://github.com/gdamjan/yarn-audit-workspaces-example
What is the expected behavior?
yarn audit should report the vulnerability of a dependency listed in yarn.lock
Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: