The npm private-registry policy read .npmrc and .yarnrc.yml only at the
archive root, so a monorepo project in a subfolder with its own
`@corp:registry=...` had its private-scope names looked up on
registry.npmjs.org. The policy of an npm package now comes from the files
next to the lockfile Syft read it from and every parent directory up to
the root: the nearest file names a scope's registry, and a non-public
default registry anywhere on the way stops every lookup for that project.
A package found in several projects is looked up only if all of them
take it from the public registry. The same policy gates the fallback
tarball URL in the SBOM's distribution references.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p