Skip to content

Commit

Permalink
docs(pnpm): add note about supported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Apr 17, 2024
1 parent 46d5aba commit fbe8317
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/coverage/language/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ By default, Trivy doesn't report development dependencies. Use the `--include-de
### pnpm
Trivy parses `pnpm-lock.yaml`, then finds production dependencies and builds a [tree][dependency-graph] of dependencies with vulnerabilities.

!!! warning
Trivy currently only supports Lockfile [v6][pnpm-lockfile-v6] or earlier.

### Bun
Trivy supports scanning `yarn.lock` files generated by [Bun](https://bun.sh/docs/install/lockfile#how-do-i-inspect-bun-s-lockfile). You can use the command `bun install -y` to generate a Yarn-compatible `yarn.lock`.

Expand All @@ -69,5 +72,6 @@ Trivy searches for `package.json` files under `node_modules` and identifies inst
It only extracts package names, versions and licenses for those packages.

[dependency-graph]: ../../configuration/reporting.md#show-origins-of-vulnerable-dependencies
[pnpm-lockfile-v6]: https://github.com/pnpm/spec/blob/fd3238639af86c09b7032cc942bab3438b497036/lockfile/6.0.md

[^1]: [yarn.lock](#bun) must be generated

0 comments on commit fbe8317

Please sign in to comment.