mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +01:00
refactor(allowlist): use iota for condition (#1569)
This commit is contained in:
1 parent
12034a71c5
commit
5c03fa4a3e
4 files changed
+22
-15
No files matched your search
+2
-2
@@ -282,7 +282,7 @@ func (d *Detector) detectRule(fragment Fragment, currentRaw string, rule config.
|
||||
}
|
||||
if isAllowed {
|
||||
logger.Trace().
|
||||
Str("condition", string(a.MatchCondition)).
|
||||
Str("condition", a.MatchCondition.String()).
|
||||
Bool("commit-allowed", commitAllowed).
|
||||
Bool("path-allowed", commitAllowed).
|
||||
Msg("Skipping fragment due to rule allowlist")
|
||||
@@ -474,7 +474,7 @@ MatchLoop:
|
||||
if isAllowed {
|
||||
logger.Trace().
|
||||
Str("finding", finding.Secret).
|
||||
Str("condition", string(a.MatchCondition)).
|
||||
Str("condition", a.MatchCondition.String()).
|
||||
Bool("regex-allowed", regexAllowed).
|
||||
Bool("contains-stopword", containsStopword).
|
||||
Msg("Skipping finding due to rule allowlist")
|
||||
|
||||
Reference in new issue
Block a user