Add a script to scan this project's own dependencies #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "infra"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Trivy reads pnpm-lock.yaml directly, so it reports both an accurate
component list and the vulnerabilities against it. cyclonedx-npm was the
obvious first choice and does not work here: it shells out to
npm ls,which cannot read pnpm's symlinked node_modules and fails outright.
--include-dev-deps is not optional for this repo. Trivy omits dev
dependencies by default, and every dependency here is one, so without it
the scan returns an empty BOM.
The script is sbom:self rather than sbom because pnpm ships a built-in
pnpm sbomcommand that shadows a script of that name.The output is ignored: it is a scan result, stale as soon as the lockfile
or Trivy's vulnerability database moves.