Guides
Other pipelines
Use the scanner in GitLab CI, Jenkins or any other pipeline.
The scanner is one binary with an exit code, so it works anywhere a shell does.
curl -sSfL https://hardenkit.com/install.sh | sh
hardenkit scan --fail-on high .The command exits with 1 when a finding is at or above the level you chose, and 2 when the scan itself failed.
A report for the job
hardenkit scan --format markdown . > report.md
hardenkit scan --format json . > report.json--summary-file PATH appends the Markdown report to a file while still printing the normal output.
Pin the version
Set HARDENKIT_VERSION before the install script so a new release cannot change a build's result:
HARDENKIT_VERSION=0.1.0 sh -c "$(curl -sSfL https://hardenkit.com/install.sh)"