Repository navigation
Conversation
raysubham
force-pushed
the
feat/nuget-inventory
branch
from
October 15, 2026 16:51
a04271c to
0dd07a1
Compare
Add passive NuGet package inventory and NuGet.Config audit to enterprise telemetry as optional nuget_inventory and nuget_config_audit sections. The scanner reads SDK-style and legacy project metadata, central package versions, restore graphs, lock files, global/fallback/custom caches, .NET tools, templates, deps.json and file-based app directives. It never runs dotnet, NuGet, MSBuild, credential providers or scripts, and never reads credential contents. Unparsed or unreadable inputs leave their sources partial so prior evidence is not retired.
Charge each source, project and package record against the 16 MiB output budget as it is admitted, reserving the config audit's 256 KiB cap up front. Once the budget is spent, collection stops and the affected sources are marked partial with output_size_limit, so records already collected are kept instead of the whole inventory being discarded, and missing records never read as package removal.
raysubham
force-pushed
the
feat/nuget-inventory
branch
from
October 15, 2026 17:07
0dd07a1 to
a17c5de
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds passive .NET/NuGet package inventory and NuGet.Config audit to enterprise telemetry through optional
nuget_inventoryandnuget_config_auditsections.PackageReference,PackageDownload, MSBuild SDKs), centralDirectory.Packages.propsversions andGlobalPackageReference, and legacypackages.config.project.assets.json, locked packages frompackages*.lock.json, cached packages from global, fallback and configured caches, global/local .NET tools, installed templates,*.deps.jsonbinary dependencies, and C#/F# file-based app directives.nuget-001throughnuget-004.The collector never executes dotnet, NuGet, MSBuild, credential providers, scripts or discovered binaries, and never reads credential contents. XML input rejects DTDs;
.nupkgarchives are read bounded and never extracted. Community output remains unchanged. Updates README and scan-coverage documentation. Release versioning stays unchanged.Type of change
Testing
make smoke(45 checks)golangci-lint run ./...,go vet ./..., and gofmtgo test ./... -race -count=1Also verified CGO-disabled builds for linux/amd64, darwin/arm64 and windows/amd64, and module consistency. Gosec reports the 24 pre-existing findings, none in NuGet files.
Native VM scanning and deployed REST/MCP acceptance remain pending.
Related Issues
Builds on the Composer scanner and configuration helpers from #238 (merged).