mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
* Pass the entropy data back to the Leak struct Do this to make it easier to tune entropy checks and make decisions in systems consuming the output. ~ B'ezrat Hashem ~ * Return negative number when entropy not checked That way you can tell the difference between not checking or an actual entropy level of 0 ~ B'ezrat Hashem ~ * Make sure to handle range checks properly Make sure to show when something had an entropy returned but was outside range, or didn't have a hit at all, etc... ~ B'zrat Hashem ~ * Add a few doc strings Follow the project's conventiona add a comment above the methods ~ B'ezrat Hashem ~ * Update tests and get them to pass ~ B'ezrat Hashem ~ * Remove checked in `.got` files ~ B'ezrat Hashem ~ * Add `*.got` to the `.gitignore` Make sure the test output files aren't checked-in ~ B'ezrat Hashem ~
48 lines
1.4 KiB
JSON
48 lines
1.4 KiB
JSON
[
|
|
{
|
|
"line": "api_token: exampleSecretPassword",
|
|
"lineNumber": 3,
|
|
"offender": "token: exampleSecretPassword",
|
|
"offenderEntropy": -1,
|
|
"commit": "e7bf376f855ae9bc6e3bb27b5f9d65c57eba799d",
|
|
"repo": "test_repo_6",
|
|
"rule": "Generic password",
|
|
"commitMessage": "More secrets\n\n",
|
|
"author": "Noel Algora",
|
|
"email": "noealgigu@gmail.com",
|
|
"file": "config/config.yaml",
|
|
"date": "2020-02-19T04:08:26-05:00",
|
|
"tags": "key, Yml, Yaml"
|
|
},
|
|
{
|
|
"line": "db_password_token: exampleSecretPassword",
|
|
"lineNumber": 3,
|
|
"offender": "password_token: exampleSecretPassword",
|
|
"offenderEntropy": -1,
|
|
"commit": "e7bf376f855ae9bc6e3bb27b5f9d65c57eba799d",
|
|
"repo": "test_repo_6",
|
|
"rule": "Generic password",
|
|
"commitMessage": "More secrets\n\n",
|
|
"author": "Noel Algora",
|
|
"email": "noealgigu@gmail.com",
|
|
"file": "config/config.yaml",
|
|
"date": "2020-02-19T04:08:26-05:00",
|
|
"tags": "key, Yml, Yaml"
|
|
},
|
|
{
|
|
"line": "aws_access_key_id=AKIAIO5FODNN7EXAMPLE",
|
|
"lineNumber": 1,
|
|
"offender": "AKIAIO5FODNN7EXAMPLE",
|
|
"offenderEntropy": -1,
|
|
"commit": "95cf0237f8cdfc0686a29df08260d8635f46c9b0",
|
|
"repo": "test_repo_6",
|
|
"rule": "AWS Access Key",
|
|
"commitMessage": "AWS Key in properties\n\n",
|
|
"author": "Noel Algora",
|
|
"email": "noealgigu@gmail.com",
|
|
"file": "config/application.properties",
|
|
"date": "2020-02-19T04:04:15-05:00",
|
|
"tags": "key, AWS"
|
|
}
|
|
]
|