Docs

Git hooks

Install local Git hooks that run Radar before risky code reaches a commit.

Pre-commit hook

The managed hook runs a fast scan and blocks high-risk findings before commit. Existing non-Radar hooks are not overwritten unless you pass `--force`.

radar hook install
radar hook status
radar hook uninstall

Thresholds

Use a stricter threshold for sensitive repositories. The hook writes no license secrets and calls the installed `radar` binary from PATH.

radar hook install --fail-on critical
radar hook install --force --fail-on high