Skip to content

Commit

Permalink
ignore k8s apiVersion in generic-api-key pattern (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
amandre committed Feb 22, 2022
1 parent 4b6f4d0 commit c3b799e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/gitleaks.toml
Expand Up @@ -535,7 +535,7 @@ secretGroup = 3
[[rules]]
id = "generic-api-key"
description = "Generic API Key"
regex = '''(?i)((key|api|token|secret|password)[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9a-zA-Z\-_=]{8,64})['\"]'''
regex = '''(?i)((key|api[^Version]|token|secret|password)[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9a-zA-Z\-_=]{8,64})['\"]'''
entropy = 3.7
secretGroup = 4

Expand Down

0 comments on commit c3b799e

Please sign in to comment.