HardenKitDocs
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

FlagWhat it does
--format FORMATtext (the default), json or markdown
--fail-on LEVELExit 1 if any finding is at or above kev, critical, high, medium or low. The default never fails
--ignore-unfixedLeave out vulnerabilities with no fixed version yet. Exploited ones are always kept
--imagesAlso scan every container image the Kubernetes manifests deploy
--no-aiSkip the AI-stack checks
--no-k8sSkip the Kubernetes and Helm checks
--no-actionsSkip the GitHub Actions checks
--no-dbDo not use the prebuilt database; ask KEV, EPSS and NVD live
--no-nvdSkip live severity lookups from NVD
--summary-file PATHAlso append a Markdown report to a file, for example $GITHUB_STEP_SUMMARY
-v, --verboseShow summaries, file locations and advisory links

Environment

VariableWhat it sets
HARDENKIT_DB_URLWhere the database is: an https address or a local file
HARDENKIT_NVD_API_KEYAn 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.

VariableWhat it sets
HARDENKIT_SLACK_WEBHOOKThe same as watch --slack
HARDENKIT_WATCH_WEBHOOKThe same as watch --webhook
HARDENKIT_TOKENThe dashboard API key used by watch --report-to

Other commands

hardenkit version

On this page