mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
adding logic to ignore gitleaks config during scans (#710)
This commit is contained in:
1 parent
a37822dffd
commit
4acd7a3c8d
6 files changed
+22
-3
No files matched your search
@@ -38,6 +38,7 @@ type ViperConfig struct {
|
||||
|
||||
// Config is a configuration struct that contains rules and an allowlist if present.
|
||||
type Config struct {
|
||||
Path string
|
||||
Description string
|
||||
Rules []*Rule
|
||||
Allowlist Allowlist
|
||||
|
||||
@@ -445,4 +445,4 @@ regex = '''(?i)(typeform[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}(tfp_[a
|
||||
[allowlist]
|
||||
description = "global allow lists"
|
||||
regexes = ['''219-09-9999''', '''078-05-1120''', '''(9[0-9]{2}|666)-\d{2}-\d{4}''']
|
||||
files = ['''(.*?)(jpg|gif|doc|pdf|bin|svg|socket)$''']
|
||||
paths = ['''(.*?)(jpg|gif|doc|pdf|bin|svg|socket)$''']
|
||||
Reference in new issue
Block a user