mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +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 ~
35 lines
1.0 KiB
JSON
35 lines
1.0 KiB
JSON
[
|
|
{
|
|
"line": "api_token: exampleSecretPassword",
|
|
"lineNumber": 2,
|
|
"offender": "token: exampleSecretPassword",
|
|
"offenderEntropy": -1,
|
|
"commit": "98b6c7cb3fb29a5993c4c95c56a2dc53050b9247",
|
|
"repo": "test_repo_6",
|
|
"rule": "Generic password",
|
|
"commitMessage": "Adding some secrets in config folder\n\n",
|
|
"author": "Noel Algora",
|
|
"email": "noealgigu@gmail.com",
|
|
"file": "application.yaml",
|
|
"date": "2020-02-24T14:13:15-05:00",
|
|
"tags": "key, Yml, Yaml",
|
|
"operation": "addition"
|
|
},
|
|
{
|
|
"line": "db_password: verySecretProductionPassword",
|
|
"lineNumber": 3,
|
|
"offender": "password: verySecretProductionPassword",
|
|
"offenderEntropy": -1,
|
|
"commit": "98b6c7cb3fb29a5993c4c95c56a2dc53050b9247",
|
|
"repo": "test_repo_6",
|
|
"rule": "Generic password",
|
|
"commitMessage": "Adding some secrets in config folder\n\n",
|
|
"author": "Noel Algora",
|
|
"email": "noealgigu@gmail.com",
|
|
"file": "application.yaml",
|
|
"date": "2020-02-24T14:13:15-05:00",
|
|
"tags": "key, Yml, Yaml",
|
|
"operation": "addition"
|
|
}
|
|
]
|