|
@@ -229,23 +229,23 @@ your `.git/hooks/` directory.
|
|
|
The order of precedence is:
|
|
The order of precedence is:
|
|
|
|
|
|
|
|
1. `--config/-c` option:
|
|
1. `--config/-c` option:
|
|
|
- ```bash
|
|
|
|
|
- gitleaks git --config /home/dev/customgitleaks.toml .
|
|
|
|
|
- ```
|
|
|
|
|
-1. Environment variable `GITLEAKS_CONFIG` with the file path:
|
|
|
|
|
- ```bash
|
|
|
|
|
- export GITLEAKS_CONFIG="/home/dev/customgitleaks.toml"
|
|
|
|
|
- gitleaks git .
|
|
|
|
|
- ```
|
|
|
|
|
-1. Environment variable `GITLEAKS_CONFIG_TOML` with the file content:
|
|
|
|
|
- ```bash
|
|
|
|
|
- export GITLEAKS_CONFIG_TOML=`cat customgitleaks.toml`
|
|
|
|
|
- gitleaks git .
|
|
|
|
|
- ```
|
|
|
|
|
-1. A `.gitleaks.toml` file within the target path:
|
|
|
|
|
- ```bash
|
|
|
|
|
- gitleaks git .
|
|
|
|
|
- ```
|
|
|
|
|
|
|
+ ```bash
|
|
|
|
|
+ gitleaks git --config /home/dev/customgitleaks.toml .
|
|
|
|
|
+ ```
|
|
|
|
|
+2. Environment variable `GITLEAKS_CONFIG` with the file path:
|
|
|
|
|
+ ```bash
|
|
|
|
|
+ export GITLEAKS_CONFIG="/home/dev/customgitleaks.toml"
|
|
|
|
|
+ gitleaks git .
|
|
|
|
|
+ ```
|
|
|
|
|
+3. Environment variable `GITLEAKS_CONFIG_TOML` with the file content:
|
|
|
|
|
+ ```bash
|
|
|
|
|
+ export GITLEAKS_CONFIG_TOML=`cat customgitleaks.toml`
|
|
|
|
|
+ gitleaks git .
|
|
|
|
|
+ ```
|
|
|
|
|
+4. A `.gitleaks.toml` file within the target path:
|
|
|
|
|
+ ```bash
|
|
|
|
|
+ gitleaks git .
|
|
|
|
|
+ ```
|
|
|
|
|
|
|
|
If none of the four options are used, then gitleaks will use the default config.
|
|
If none of the four options are used, then gitleaks will use the default config.
|
|
|
|
|
|