remove writing default config, introduce GITLEAKS_CONFIG (#746)

* remove writing default config, introduce GITLEAKS_CONFIG

* setting report format default to json, update readme
This commit is contained in:
Zachary Rice authored and GitHub committed 2021-12-09 09:21:17 -06:00
1 parent 6f6ebd454f
commit 3fedf6f8e7
2 files changed
+19 -18

No files matched your search

+3 -3
View File
@@ -78,9 +78,9 @@ Flags:
-c, --config string config file path
order of precedence:
1. --config/-c
2. (--source/-s)/.gitleaks.toml
if --config/-c is not set and no (--source/-s)/.gitleaks.toml present
then .gitleaks.toml will be written to (--source/-s)/.gitleaks.toml for future use
2. env var GITLEAKS_CONFIG
3. (--source/-s)/.gitleaks.toml
If none of the three options are used, then gitleaks will use the default config
--exit-code string exit code when leaks have been encountered (default: 1)
-h, --help help for gitleaks
-l, --log-level string log level (debug, info, warn, error, fatal) (default "info")