mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +01:00
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:
1 parent
6f6ebd454f
commit
3fedf6f8e7
2 files changed
+19
-18
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user