Skip to content

Commit 95c8fd9

Browse files
authored
docs(nodejs): add info about supported versions of pnpm lock files (aquasecurity#6510)
1 parent 12ec0df commit 95c8fd9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/docs/coverage/language/nodejs.md

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ By default, Trivy doesn't report development dependencies. Use the `--include-de
5555
### pnpm
5656
Trivy parses `pnpm-lock.yaml`, then finds production dependencies and builds a [tree][dependency-graph] of dependencies with vulnerabilities.
5757

58+
!!! note
59+
Trivy currently only supports Lockfile [v6][pnpm-lockfile-v6] or earlier.
60+
5861
### Bun
5962
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`.
6063

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

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

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

0 commit comments

Comments
 (0)