Skip to content

Commit a08ca29

Browse files
Auto-add missing snapshots (#968)
Create new snapshots from https://github.com/trunk-io/plugins/actions/runs/13037946183 Co-authored-by: TylerJang27 <42743566+TylerJang27@users.noreply.github.com>
1 parent 54b7448 commit a08ca29

4 files changed

Lines changed: 171 additions & 0 deletions
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter trufflehog-git test CUSTOM 1`] = `
5+
{
6+
"issues": [
7+
{
8+
"code": "URI",
9+
"file": ".",
10+
"isSecurity": true,
11+
"issueClass": "ISSUE_CLASS_NEW",
12+
"level": "LEVEL_HIGH",
13+
"linter": "trufflehog-git",
14+
"message": "secrets.in.py:8: Secret detected: https://admin:********@the-internet.herokuapp.com/basic_auth on commit <hash> (file since deleted)",
15+
"targetType": "ALL",
16+
},
17+
{
18+
"code": "URI",
19+
"file": "secrets2.in.py",
20+
"isSecurity": true,
21+
"issueClass": "ISSUE_CLASS_NEW",
22+
"level": "LEVEL_HIGH",
23+
"line": "8",
24+
"linter": "trufflehog-git",
25+
"message": "Secret detected: https://admin:********@the-internet.herokuapp.com/basic_auth on commit <hash>",
26+
"targetType": "ALL",
27+
},
28+
],
29+
"lintActions": [
30+
{
31+
"command": "lint",
32+
"fileGroupName": "ALL",
33+
"linter": "trufflehog-git",
34+
"paths": [
35+
".",
36+
],
37+
"verb": "TRUNK_VERB_CHECK",
38+
},
39+
],
40+
"taskFailures": [],
41+
"unformattedFiles": [],
42+
}
43+
`;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter trufflehog test buff_size 1`] = `
5+
{
6+
"issues": [],
7+
"lintActions": [
8+
{
9+
"command": "lint",
10+
"fileGroupName": "ALL",
11+
"linter": "trufflehog",
12+
"paths": [
13+
"test_data/buff_size.in.cc",
14+
],
15+
"verb": "TRUNK_VERB_CHECK",
16+
},
17+
{
18+
"command": "lint",
19+
"fileGroupName": "ALL",
20+
"linter": "trufflehog",
21+
"paths": [
22+
"test_data/buff_size.in.cc",
23+
],
24+
"upstream": true,
25+
"verb": "TRUNK_VERB_CHECK",
26+
},
27+
],
28+
"taskFailures": [],
29+
"unformattedFiles": [],
30+
}
31+
`;
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter trufflehog test secrets 1`] = `
5+
{
6+
"issues": [
7+
{
8+
"code": "URI",
9+
"file": "test_data/secrets.in.py",
10+
"isSecurity": true,
11+
"issueClass": "ISSUE_CLASS_EXISTING",
12+
"level": "LEVEL_HIGH",
13+
"line": "8",
14+
"linter": "trufflehog",
15+
"message": "Secret detected: https://admin:********@the-internet.herokuapp.com/basic_auth",
16+
"targetType": "ALL",
17+
},
18+
],
19+
"lintActions": [
20+
{
21+
"command": "lint",
22+
"fileGroupName": "ALL",
23+
"linter": "trufflehog",
24+
"paths": [
25+
"test_data/secrets.in.py",
26+
],
27+
"verb": "TRUNK_VERB_CHECK",
28+
},
29+
{
30+
"command": "lint",
31+
"fileGroupName": "ALL",
32+
"linter": "trufflehog",
33+
"paths": [
34+
"test_data/secrets.in.py",
35+
],
36+
"upstream": true,
37+
"verb": "TRUNK_VERB_CHECK",
38+
},
39+
],
40+
"taskFailures": [],
41+
"unformattedFiles": [],
42+
}
43+
`;
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter trufflehog test wrong_line_number 1`] = `
5+
{
6+
"issues": [
7+
{
8+
"code": "URI",
9+
"file": "test_data/wrong_line_number.in.ts",
10+
"isSecurity": true,
11+
"issueClass": "ISSUE_CLASS_EXISTING",
12+
"level": "LEVEL_HIGH",
13+
"line": "587",
14+
"linter": "trufflehog",
15+
"message": "Secret detected: https://admin:********@the-internet.herokuapp.com/basic_auth",
16+
"targetType": "ALL",
17+
},
18+
{
19+
"code": "URI",
20+
"file": "test_data/wrong_line_number.in.ts",
21+
"isSecurity": true,
22+
"issueClass": "ISSUE_CLASS_EXISTING",
23+
"level": "LEVEL_HIGH",
24+
"line": "592",
25+
"linter": "trufflehog",
26+
"message": "Secret detected: https://admin:********@the-internet.herokuapp.com/basic_auth",
27+
"targetType": "ALL",
28+
},
29+
],
30+
"lintActions": [
31+
{
32+
"command": "lint",
33+
"fileGroupName": "ALL",
34+
"linter": "trufflehog",
35+
"paths": [
36+
"test_data/wrong_line_number.in.ts",
37+
],
38+
"verb": "TRUNK_VERB_CHECK",
39+
},
40+
{
41+
"command": "lint",
42+
"fileGroupName": "ALL",
43+
"linter": "trufflehog",
44+
"paths": [
45+
"test_data/wrong_line_number.in.ts",
46+
],
47+
"upstream": true,
48+
"verb": "TRUNK_VERB_CHECK",
49+
},
50+
],
51+
"taskFailures": [],
52+
"unformattedFiles": [],
53+
}
54+
`;

0 commit comments

Comments
 (0)