/
githubmirror
/
gitleaks
Обзор
Документация
Войти
/
githubmirror
/
gitleaks
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
testdata/config/generic_with_py_path.toml
35 строк
726 B
Richard Gomez
feat(config): define multiple global allowlists (#1777)
29 апр 2025, 16:49
Не верифицирован
29 апр 2025, 16:49
4451b45
Код
Авторство
О чём код?
title = "gitleaks config" [[rules]] id = "generic-api-key" description = "Generic API Key" path = '''.py''' regex = '''(?i)((key|api|token|secret|password)[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9a-zA-Z\-_=]{8,64})['\"]''' secretGroup = 4 entropy = 3.7 [allowlist] description = "global allow lists" paths = [ '''gitleaks.toml''', '''(.*?)(jpg|gif|doc|pdf|bin|svg|socket)$''', '''(go.mod|go.sum)$''' ] regexes = [ '''219-09-9999''', '''078-05-1120''', '''(9[0-9]{2}|666)-\d{2}-\d{4}''', '''process''', '''getenv''', '''\.env''', '''env\(''', '''env\.''', '''setting''', '''load''', '''token''', '''password''', '''secret''', '''api\_key''', '''apikey''', '''api\-key''', ]