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
11 lines
262 B
Python
11 lines
262 B
Python
# Do not hard code credentials
|
|
client = boto3.client(
|
|
's3',
|
|
# Hard coded strings as credentials, not recommended.
|
|
aws_access_key_id='AKIAIO5FODNN7EXAMPLE',
|
|
aws_secret_access_key='ABCDEF+c2L7yXeGvUyrPgYsDnWRRC1AYEXAMPLE'
|
|
)
|
|
|
|
# adding another line
|
|
|