-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1744ad
commit a38b872
Showing
4 changed files
with
171 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
linters/trufflehog/test_data/trufflehog_git_v3.72.0_CUSTOM.check.shot
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,43 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing linter trufflehog-git test CUSTOM 1`] = ` | ||
{ | ||
"issues": [ | ||
{ | ||
"code": "URI", | ||
"file": ".", | ||
"isSecurity": true, | ||
"issueClass": "ISSUE_CLASS_NEW", | ||
"level": "LEVEL_HIGH", | ||
"linter": "trufflehog-git", | ||
"message": "secrets.in.py:8: Secret detected: https://admin:********@the-internet.herokuapp.com on commit <hash> (file since deleted)", | ||
"targetType": "ALL", | ||
}, | ||
{ | ||
"code": "URI", | ||
"file": "secrets2.in.py", | ||
"isSecurity": true, | ||
"issueClass": "ISSUE_CLASS_NEW", | ||
"level": "LEVEL_HIGH", | ||
"line": "8", | ||
"linter": "trufflehog-git", | ||
"message": "Secret detected: https://admin:********@the-internet.herokuapp.com on commit <hash>", | ||
"targetType": "ALL", | ||
}, | ||
], | ||
"lintActions": [ | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "ALL", | ||
"linter": "trufflehog-git", | ||
"paths": [ | ||
".", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
], | ||
"taskFailures": [], | ||
"unformattedFiles": [], | ||
} | ||
`; |
31 changes: 31 additions & 0 deletions
31
linters/trufflehog/test_data/trufflehog_v3.72.0_buff_size.check.shot
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,31 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing linter trufflehog test buff_size 1`] = ` | ||
{ | ||
"issues": [], | ||
"lintActions": [ | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "ALL", | ||
"linter": "trufflehog", | ||
"paths": [ | ||
"test_data/buff_size.in.cc", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "ALL", | ||
"linter": "trufflehog", | ||
"paths": [ | ||
"test_data/buff_size.in.cc", | ||
], | ||
"upstream": true, | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
], | ||
"taskFailures": [], | ||
"unformattedFiles": [], | ||
} | ||
`; |
43 changes: 43 additions & 0 deletions
43
linters/trufflehog/test_data/trufflehog_v3.72.0_secrets.check.shot
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,43 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing linter trufflehog test secrets 1`] = ` | ||
{ | ||
"issues": [ | ||
{ | ||
"code": "URI", | ||
"file": "test_data/secrets.in.py", | ||
"isSecurity": true, | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"level": "LEVEL_HIGH", | ||
"line": "8", | ||
"linter": "trufflehog", | ||
"message": "Secret detected: https://admin:********@the-internet.herokuapp.com", | ||
"targetType": "ALL", | ||
}, | ||
], | ||
"lintActions": [ | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "ALL", | ||
"linter": "trufflehog", | ||
"paths": [ | ||
"test_data/secrets.in.py", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "ALL", | ||
"linter": "trufflehog", | ||
"paths": [ | ||
"test_data/secrets.in.py", | ||
], | ||
"upstream": true, | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
], | ||
"taskFailures": [], | ||
"unformattedFiles": [], | ||
} | ||
`; |
54 changes: 54 additions & 0 deletions
54
linters/trufflehog/test_data/trufflehog_v3.72.0_wrong_line_number.check.shot
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,54 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing linter trufflehog test wrong_line_number 1`] = ` | ||
{ | ||
"issues": [ | ||
{ | ||
"code": "URI", | ||
"file": "test_data/wrong_line_number.in.ts", | ||
"isSecurity": true, | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"level": "LEVEL_HIGH", | ||
"line": "587", | ||
"linter": "trufflehog", | ||
"message": "Secret detected: https://admin:********@the-internet.herokuapp.com", | ||
"targetType": "ALL", | ||
}, | ||
{ | ||
"code": "URI", | ||
"file": "test_data/wrong_line_number.in.ts", | ||
"isSecurity": true, | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"level": "LEVEL_HIGH", | ||
"line": "592", | ||
"linter": "trufflehog", | ||
"message": "Secret detected: https://admin:********@the-internet.herokuapp.com", | ||
"targetType": "ALL", | ||
}, | ||
], | ||
"lintActions": [ | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "ALL", | ||
"linter": "trufflehog", | ||
"paths": [ | ||
"test_data/wrong_line_number.in.ts", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "ALL", | ||
"linter": "trufflehog", | ||
"paths": [ | ||
"test_data/wrong_line_number.in.ts", | ||
], | ||
"upstream": true, | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
], | ||
"taskFailures": [], | ||
"unformattedFiles": [], | ||
} | ||
`; |