Lockfiles name versions, not licenses; npm and Maven/Gradle components
stayed without one. On the pattern of the NuGet lookup (#467):
- sbom/registry_license.rs: npm from registry.npmjs.org/<name>/<version>
(license as an expression, {type}, or the older licenses list, "SEE
LICENSE IN" → LicenseRef-file); Maven from the POM on Maven Central, or
on Google's Maven repository for androidx./com.google.android./
com.android. groups, following up to three parent POMs; common license
names mapped to SPDX ids, else the URL's meaning, else the name.
- Only names and versions leave, through the guarded client (the NuGet
HttpFetch), bounded like NuGet's and cached across tenants with the
NuGet licenses (keys npm:<name>, maven:<group>:<artifact>).
- Never a name a private registry may serve: .npmrc/.yarnrc.yml default
registry elsewhere stops npm, a scope routed elsewhere stops that
scope; a Maven or Gradle build naming a repository besides the public
ones stops every Maven lookup.
- REGISTRY_LICENSE_LOOKUP=false turns it off.
- Tests: fake registries (npm plain and scoped, Maven via a parent POM,
unknown package), private scope and repository sending nothing, license
shapes, repository parsing; an ignored test against the real registries
(lodash, @babel/core, okhttp via parent, androidx.core via Google, gson)
passes with every license found.
- Docs (sbom guide, tools incl. egress); staging test plan: check 17.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
Minimal .NET/C# support for epic #445 (N1-N5): detection of solutions/projects and target frameworks, NuGet SBOM without build or restore (pkg:nuget purls for OSV, unresolved-dependency warning, end-of-support frameworks), own C# semgrep rule pack, .NET configuration and key-file checks, .NET build output and restored packages not counted as own code. Fixture fixtures/dotnet/framework48, docs .NET-Projekte (DE/EN).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB