oz0 index advisories import
For: Operators and developers looking up a command.
Import advisories for the vulnerability scan: a file in the hub's format (oz0-hub.advisories.v1), an OSV entry, a JSON array of OSV entries, or OSV's bulk zip of an ecosystem (such as PyPI/all.zip), or a folder of OSV .json files, which is sent as one zip.
At most 32 MB; PyPI and npm entries are kept, others are counted as skipped, and so is an entry that does not read or check (the first five are named), so that one stray entry does not cost the rest. It replaces the previous import, which wins over the feed and the indexes for the same advisory: an entry with withdrawn set withdraws it from them. An air-gapped install's folder carries advisories/advisories.json for this. Cluster admins may.
Usage
oz0 index advisories import --file FILE|DIR [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--file | string | the advisory file, OSV zip, or folder of OSV .json files | |
--json | bool | print JSON instead of a table |
Inherited flags
| Flag | Type | Default | Description |
|---|---|---|---|
--context | string | $OZ0_CONTEXT or <config dir>/orchestrator-zero/context.json | CLI context file written by server init |
--log-level | string | info | log level: debug, info, warn or error |
See all oz0 commands and the global flags.