Define multiple allowlists per rule (#1496)

* feat: multiple rule allowlists

* feat(config): add allowlist 'condition'
This commit is contained in:
Richard Gomez authored and GitHub committed 2024-10-14 19:17:37 -05:00
1 parent 8ea608595c
commit aabe381539
26 files changed
+778 -247

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
title = "gitleaks extended 3"
## This should not be loaded since we can only extend configs to a depth of 3
[[rules]]
id = "aws-secret-key-again-again"
description = "AWS Secret Key"
regex = '''(?i)aws_(.{0,20})?=?.[\'\"0-9a-zA-Z\/+]{40}'''
tags = ["key", "AWS"]
[[rules.allowlists]]
stopwords = ["fake"]