Skip to content

Commit

Permalink
Auto-add missing snapshots (#968)
Browse files Browse the repository at this point in the history
Create new snapshots from
https://github.com/trunk-io/plugins/actions/runs/13037946183

Co-authored-by: TylerJang27 <[email protected]>
  • Loading branch information
trunk-open-pr-bot[bot] and TylerJang27 authored Jan 29, 2025
1 parent 54b7448 commit a08ca29
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/basic_auth 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/basic_auth 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.88.3_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/basic_auth",
"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/basic_auth",
"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/basic_auth",
"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 a08ca29

Please sign in to comment.