mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24: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 ~
37 lines
828 B
JSON
37 lines
828 B
JSON
[
|
|
{
|
|
"line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',",
|
|
"lineNumber": 5,
|
|
"offender": "AKIAIO5FODNN7EXAMPLE",
|
|
"offenderEntropy": -1,
|
|
"commit": "",
|
|
"repo": "",
|
|
"repoURL": "",
|
|
"leakURL": "",
|
|
"rule": "AWS Access Key",
|
|
"commitMessage": "",
|
|
"author": "",
|
|
"email": "",
|
|
"file": "../test_data/test_repos/test_dir_1/server.test.py",
|
|
"date": "0001-01-01T00:00:00Z",
|
|
"tags": "key, AWS"
|
|
},
|
|
{
|
|
"line": " aws_access_key_id='AKIAIO5FODNN7EXAMPLE',",
|
|
"lineNumber": 5,
|
|
"offender": "AKIAIO5FODNN7EXAMPLE",
|
|
"offenderEntropy": -1,
|
|
"commit": "",
|
|
"repo": "",
|
|
"repoURL": "",
|
|
"leakURL": "",
|
|
"rule": "AWS Access Key",
|
|
"commitMessage": "",
|
|
"author": "",
|
|
"email": "",
|
|
"file": "../test_data/test_repos/test_dir_1/server.test2.py",
|
|
"date": "0001-01-01T00:00:00Z",
|
|
"tags": "key, AWS"
|
|
}
|
|
]
|