refactor(allowlist): use iota for condition (#1569)

This commit is contained in:
Richard Gomez authored and GitHub committed 2024-10-16 14:59:37 -05:00
1 parent 12034a71c5
commit 5c03fa4a3e
4 files changed
+22 -15

No files matched your search

+2 -2
View File
@@ -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")