Skip to content
secret-scan
Menu

Published module

generate-gitleaks-config.mjs

Writes the generated gitleaks config from the private value rules and the whole-file exceptions.

Takes no arguments. It writes generated.gitleaks.toml beside the script and prints Wrote <abs path>.

Only private value rules and whole-file exceptions reach gitleaks. Name rules and line-bound exceptions never do: the filters apply them afterwards.

The generated config is never committed. When you scan an old commit, regenerate it first.