Reference
Command reference
Every flag and environment variable of hardenkit scan and hardenkit watch.
hardenkit scan [flags] [target]The target is a directory (the default is .), a file, or a container image such as alpine:3.19 or registry:ghcr.io/org/app:latest.
Flags
| Flag | What it does |
|---|---|
--format FORMAT | text (the default), json or markdown |
--fail-on LEVEL | Exit 1 if any finding is at or above kev, critical, high, medium or low. The default never fails |
--ignore-unfixed | Leave out vulnerabilities with no fixed version yet. Exploited ones are always kept |
--images | Also scan every container image the Kubernetes manifests deploy |
--no-ai | Skip the AI-stack checks |
--no-k8s | Skip the Kubernetes and Helm checks |
--no-actions | Skip the GitHub Actions checks |
--no-db | Do not use the prebuilt database; ask KEV, EPSS and NVD live |
--no-nvd | Skip live severity lookups from NVD |
--summary-file PATH | Also append a Markdown report to a file, for example $GITHUB_STEP_SUMMARY |
-v, --verbose | Show summaries, file locations and advisory links |
Environment
| Variable | What it sets |
|---|---|
HARDENKIT_DB_URL | Where the database is: an https address or a local file |
HARDENKIT_NVD_API_KEY | An NVD API key for live lookups |
hardenkit watch
hardenkit watch [flags] [target ...]Rescans the targets on a schedule and alerts when a vulnerability is new or has become more urgent. The flags, the alert rules and the webhook's JSON are in Watch a server.
| Variable | What it sets |
|---|---|
HARDENKIT_SLACK_WEBHOOK | The same as watch --slack |
HARDENKIT_WATCH_WEBHOOK | The same as watch --webhook |
HARDENKIT_TOKEN | The dashboard API key used by watch --report-to |
Other commands
hardenkit version