mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
Feat/ignore finding (#938)
This commit is contained in:
1 parent
e890a8e809
commit
3bace4c735
11 files changed
+713
-8
No files matched your search
@@ -359,6 +359,7 @@ stopwords = [
|
||||
Refer to the default [gitleaks config](https://github.com/zricethezav/gitleaks/blob/master/config/gitleaks.toml) for examples or follow the [contributing guidelines](https://github.com/zricethezav/gitleaks/blob/master/README.md).
|
||||
|
||||
### Additional Configuration
|
||||
#### gitleaks:allow
|
||||
If you are knowingly committing a test secret that gitleaks will catch you can add a `gitleaks:allow` comment to that line which will instruct gitleaks
|
||||
to ignore that secret. Ex:
|
||||
```
|
||||
@@ -367,6 +368,9 @@ class CustomClass:
|
||||
|
||||
```
|
||||
|
||||
#### .gitleaksignore
|
||||
You can ignore specific findings by creating a `.gitleaksignore` file at the root of your repo. In release v8.10.0 Gitleaks added a `Fingerprint` value to the Gitleaks report. Each leak, or finding, has a Fingerprint that uniquely identifies a secret. Add this fingerprint to the `.gitleaksignore` file to ignore that specific secret. See Gitleaks' [.gitleaksignore](https://github.com/zricethezav/gitleaks/blob/master/.gitleaksignore) for an example.
|
||||
|
||||
|
||||
|
||||
## Secured by Jit
|
||||
|
||||
Reference in new issue
Block a user