#Nabi 0.1.3: nabi audit
nabi audit, which checks the packages your project pins against the security advisories of the package registry. Update with nabi toolchain update, or install again from the download page.#Checking a project
nabi audit
nabi audit reads nabi.lock and checks every registry package in it against the advisories published at packages.nabi-lang.org/advisories. For each one that applies it prints the advisory's id and summary, its severity, and the version to update to, such as nabi update json.
It exits with 0 when nothing is affected, 1 when something is, and 2 when it could not check, so a CI job can run it as a gate:
- run: nabi audit
--json prints machine-readable records, --ignore <id> skips an advisory you have read and accepted, and --offline uses only the cached list. The list is fetched once and kept for an hour. Path and git dependencies are not checked, and the output says which ones it skipped.
#Advisories on the registry
Advisories are in the OSV format other ecosystems use. Each has a page, the versions it affects carry a banner, and the whole list is an API at /api/v1/advisories?format=json. To report a vulnerability in a package, tell its owners first; for the registry or the toolchain, write to [email protected].
The guide's Security advisories page has the details. The full list of changes is in the release notes.