mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
* fix: add logic to modify endline & endcolumn * doc: update comment for #1352 * test: adding test file * chore: updating generic rule * test: adding test to TestFromFile #1352 & change static viper ConfigName * chore: remove interim fix for #1352 * fix: adjust matchIndex[1] to fix #1352 * test: adjust expectedFinding in TestFromFiles * chore: go fmt * test: rm identification of start/endlineIndex * fix: rm unused fmt pkg
10 lines
431 B
TOML
10 lines
431 B
TOML
title = "gitleaks config"
|
|
|
|
[[rules]]
|
|
description = "Generic API Key"
|
|
id = "generic-api-key"
|
|
regex = '''(?i)(?:key|api|token|secret|client|passwd|password|auth|access)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([0-9a-z\-_.=]{10,150})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
|
entropy = 3.5
|
|
keywords = [
|
|
"key","api","token","secret","client","passwd","password","auth","access",
|
|
] |