Commit c1ca675d authored by Bertrand Goareguer's avatar Bertrand Goareguer
Browse files

chore(doc): explain how to extend default rules

parent d66a0172
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -59,3 +59,6 @@ Here is how this GitLab CI template chooses the Gitleaks rules to use:
1. It first looks for a `.gitleaks.toml` file at the root of your project repository.
2. If not found, it uses the `.toml` file specified with the `$GITLEAKS_RULES` variable.
3. If not specified, [default Gitleaks rules](https://github.com/zricethezav/gitleaks/blob/master/config/gitleaks.toml) are used.


Your Gitleaks rule file can extend the default rules by using `[extend]` + `useDefault = true` as explained in the [Gitleaks documentation](https://github.com/gitleaks/gitleaks/blob/master/README.md#configuration)