mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
example of external regex
This commit is contained in:
1 parent
c77421d077
commit
fa498287b9
1 file changed
+11
@@ -87,6 +87,17 @@ gitleaks --temp -u https://github.com/some-user
|
||||
```
|
||||
Run audit on all of `some-user`'s repos. Again, `--temp` flag will clone all repos into $TMPDIR after be removed after audit
|
||||
|
||||
```bash
|
||||
gitleaks --regex-file=myregex.txt
|
||||
```
|
||||
Run audit on current working directory if `.git` is present and check for additional external regexes defined in `myregex.txt`. myregex.txt is just a text file containing a regular experession per line.
|
||||
Sample external `regex-file`:
|
||||
|
||||
```
|
||||
[a-z0-9_-]{3,16}
|
||||
[a-z]{3,16}
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user