After scanning a NIM container, use the NVIDIA GPU Cloud (NGC) CLI to download model artifacts listed in summary.referenced_models. Supply Chain does not download these files during the container scan. See NIM Container Scanning for manifest parsing and advisory details.
ngc://is not a supported--inputscheme. Supply Chain accepts local paths, cloud storage URLs, Hugging Face URLs, andoci://container references — notngc://artifact URIs.- NGC serves model files over authenticated HTTPS APIs. Individual model artifacts require NGC credentials (
NGC_API_KEY) to download. - The scanner does not pass NGC credentials to artifact download endpoints. While
NGC_API_KEYis used to pulloci://nvcr.io/nim/...container images, that credential is not applied when fetching files referenced byngc://URIs in the manifest.
Create an API key in the NGC portal.
Set the environment variable:
export NGC_API_KEY=<your-api-key>Configure the CLI:
ngc config setProvide your API key when prompted.
Referenced models from a NIM container scan use this URI format:
ngc://{org}/{team}/{model}:{version}?file={filename}Map the URI to an NGC CLI download command:
| URI component | NGC CLI argument |
|---|---|
ngc://{org}/{team}/{model}:{version}?file={filename} | ngc registry model download-version {org}/{team}/{model}:{version} --file {filename} |
Example:
| Referenced URI | Download command |
|---|---|
ngc://nim/nvidia/test-model:1.0.0?file=model.bin | ngc registry model download-version nim/nvidia/test-model:1.0.0 --file model.bin |
After downloading artifacts, scan the files locally using Supply Chain CLI. See Scanning a single file in Usage Examples for docker run commands.