-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix whitelist commits, added test (#390)
- Loading branch information
1 parent
e0f6399
commit bdc688d
Showing
4 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[[rules]] | ||
description = "AWS Manager ID" | ||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}''' | ||
tags = ["key", "AWS"] | ||
|
||
|
||
[whitelist] | ||
commits = [ | ||
"b10b3e2cb320a8c211fda94c4567299d37de7776", | ||
"17471a5fda722a9e423f1a0d3f0d267ea009d41c", | ||
"996865bb912f3bc45898a370a13aadb315014b55" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[ | ||
{ | ||
"line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", | ||
"offender": "AKIALALEMEL33243OLIB", | ||
"commit": "f61cd8587b7ac1d75a89a0c9af870a2f24c60263", | ||
"repo": "test_repo_2", | ||
"rule": "AWS Manager ID", | ||
"commitMessage": "rm secrets again\n", | ||
"author": "zach rice", | ||
"email": "zricer@protonmail.com", | ||
"file": "secrets.md", | ||
"date": "2019-10-25T13:12:32-04:00", | ||
"tags": "key, AWS" | ||
}, | ||
{ | ||
"line": " const AWSKEY = \"AKIALALEMEL33243OLIBE\"", | ||
"offender": "AKIALALEMEL33243OLIB", | ||
"commit": "b2eb34a61c988afd9b4aaa9dd58c8dd7d5f14dba", | ||
"repo": "test_repo_2", | ||
"rule": "AWS Manager ID", | ||
"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" | ||
} | ||
] |