anchore / anchore/syft

pnpm devDependencies are included in SBOM by default

Open
#3,914 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
9.6k
Forks
954
Avg merge
23h 27m
Merged PRs (30d)
48

Description

If I understand correctly from https://github.com/anchore/syft/issues/2348 and https://github.com/anchore/syft/pull/3371 , depDeps are excluded when using package-lock.json . However for pnpm lock files,, I am seeing dev deps output in the SBOM by default.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported pnpm lock-file case and compare its SBOM output with the package-lock.json behavior described in the issue. Trace the dependency classification used during pnpm package discovery; done means pnpm devDependencies are excluded from the default SBOM consistently with package-lock.json.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.