You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: exclude devDep transitive trees from yarn berry SBOM and use exact purl matching
Address two review comments:
1. Yarn berry addDependenciesToSbom() now builds a reachable set via
BFS from root production deps, so devDependency nodes and their
entire transitive trees are excluded from the SBOM — not just the
root edges.
2. Replace substring-based checkIfPackageInsideDependsOnList() with
purl-prefix matching in ensurePeerAndOptionalDeps() to avoid false
positives (e.g. "minimist" matching "minimist-options") and false
negatives (e.g. "@hapi/joi" not matching URL-encoded "%40hapi/joi").
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
0 commit comments