mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
* Modified Entropy to be able to apply it on regex match or specific capture group * Config tests * Small fixes on entropy ranges * Fix toml configs Fix tests * Start adding support for rules with filename regex Changed how config is parsed Created new functions to inspect files and content * File regex working * Fixing tests and configs * Implemented different regex for filename and filepath * Fix comments * Audit tests * Config rename vars * Fix audit tests * Filename offender * Indents and code styles * Indents and code styles * Removing bad test repo * Adding test repo 6 for filename and filepath tests * global whitelist path and fixes * Fixes on tests and new test for global whitelisting paths * Removing unused test * Fix comment
8 lines
238 B
TOML
8 lines
238 B
TOML
|
|
[[rules]]
|
|
description = "Generic password"
|
|
regex = '''(?i)(password|token).{0,20}?\s*[:|=]\s*?(?-i)([0-9a-zA-Z\/+]{4,40})'''
|
|
fileNameRegex = '''.*\.properties'''
|
|
filePathRegex = '''config(guration)?'''
|
|
tags = ["key", "Yml", "Yaml"]
|