mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 04:04:25 +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 ~
19 lines
530 B
JSON
19 lines
530 B
JSON
[
|
|
{
|
|
"line": " aws_secret_access_key='ABCDEF+c2L7yXeGvUyrPgYsDnWRRC1AYEXAMPLE'",
|
|
"lineNumber": 6,
|
|
"offender": "'ABCDEF+c2L7yXeGvUyrPgYsDnWRRC1AYEXAMPLE'",
|
|
"offenderEntropy": 4.631,
|
|
"commit": "6557c92612d3b35979bd426d429255b3bf9fab74",
|
|
"repo": "test_repo_1",
|
|
"rule": "entropy and regex",
|
|
"commitMessage": "commit 1 with secrets\n",
|
|
"author": "zach rice",
|
|
"email": "zricer@protonmail.com",
|
|
"file": "server.test.py",
|
|
"date": "2019-10-24T09:29:27-04:00",
|
|
"tags": "entropy",
|
|
"operation": "addition"
|
|
}
|
|
]
|