Documentation
¶
Overview ¶
Package supplychain holds the seam between the code that downloads a package target and the analyzer that has to say something about it
Index ¶
Constants ¶
const ExtractionDirPrefix = "mcp-scanner-package-"
ExtractionDirPrefix names the temporary directory a package target is downloaded and extracted into. The CLI and the API both create one, and their tests find leftovers by this prefix.
const ResolvedVersionKey = "supplychain.resolved_version"
ResolvedVersionKey publishes the registry version for every resolved package. The analyzer uses it only when Target.Version is empty; an explicit tag such as "latest" still reaches OSV as written, so callers should prefer a concrete version.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package archive extracts hostile input under size and count limits.
|
Package archive extracts hostile input under size and count limits. |
|
Package npm downloads a published npm package's tarball and unpacks it with internal/supplychain/archive.
|
Package npm downloads a published npm package's tarball and unpacks it with internal/supplychain/archive. |
|
Package osv queries the OSV (Open Source Vulnerabilities) database for a set of ecosystem/name/version coordinates, and parses the lockfile formats that produce those coordinates in the first place
|
Package osv queries the OSV (Open Source Vulnerabilities) database for a set of ecosystem/name/version coordinates, and parses the lockfile formats that produce those coordinates in the first place |
|
Package pypi downloads and extracts PyPI sdists and wheels.
|
Package pypi downloads and extracts PyPI sdists and wheels. |