Skip to content

Commit

Permalink
Auto add snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJang27 authored and github-actions[bot] committed Apr 18, 2024
1 parent ccddbf7 commit a1a1f51
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 0 deletions.
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": [],
}
`;
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 linters/trufflehog/test_data/trufflehog_v3.73.0_secrets.check.shot
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": [],
}
`;
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": [],
}
`;

0 comments on commit a1a1f51

Please sign in to comment.