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 ~
54 lines
1.4 KiB
JSON
54 lines
1.4 KiB
JSON
[
|
|
{
|
|
"line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"",
|
|
"lineNumber": 4,
|
|
"offender": "AKIALALEMEL33243OLIB",
|
|
"offenderEntropy": -1,
|
|
"commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba",
|
|
"repo": "test_repo_2",
|
|
"repoURL": "",
|
|
"leakURL": "",
|
|
"rule": "AWS Access Key",
|
|
"commitMessage": "adding another one\n",
|
|
"author": "zach rice",
|
|
"email": "zricer@protonmail.com",
|
|
"file": "secrets.md",
|
|
"date": "2019-10-25T13:12:08-04:00",
|
|
"tags": "key, AWS"
|
|
},
|
|
{
|
|
"line": "Here's an AWS secret: \"AKIALALEMEL33243OLIAE\"",
|
|
"lineNumber": 3,
|
|
"offender": "AKIALALEMEL33243OLIA",
|
|
"offenderEntropy": -1,
|
|
"commit": "17471a5fda722a9e423f1a0d3f0d267ea009d41c",
|
|
"repo": "test_repo_2",
|
|
"repoURL": "",
|
|
"leakURL": "",
|
|
"rule": "AWS Access Key",
|
|
"commitMessage": "wait this is actually adding an aws secret\n",
|
|
"author": "zach rice",
|
|
"email": "zricer@protonmail.com",
|
|
"file": "secrets.md",
|
|
"date": "2019-10-25T13:01:27-04:00",
|
|
"tags": "key, AWS"
|
|
},
|
|
{
|
|
"line": "Here's an AWS secret: AKIALALEMEL33243OLIAE",
|
|
"lineNumber": 3,
|
|
"offender": "AKIALALEMEL33243OLIA",
|
|
"offenderEntropy": -1,
|
|
"commit": "b10b3e2cb320a8c211fda94c4567299d37de7776",
|
|
"repo": "test_repo_2",
|
|
"repoURL": "",
|
|
"leakURL": "",
|
|
"rule": "AWS Access Key",
|
|
"commitMessage": "adding aws key\n",
|
|
"author": "zach rice",
|
|
"email": "zricer@protonmail.com",
|
|
"file": "secrets.md",
|
|
"date": "2019-10-25T12:58:39-04:00",
|
|
"tags": "key, AWS"
|
|
}
|
|
]
|