Skip to content

Commit

Permalink
Ignore test secrets in scans (jfrog#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas authored Jan 29, 2024
1 parent 44a4155 commit 0fc5abe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions commands/audit/jas/secrets/secretsscanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func TestHideSecret(t *testing.T) {
{secret: "12", expectedOutput: "***"},
{secret: "123", expectedOutput: "***"},
{secret: "123456789", expectedOutput: "123************"},
// jfrog-ignore: test case
{secret: "3478hfnkjhvd848446gghgfh", expectedOutput: "347************"},
}

Expand Down
2 changes: 1 addition & 1 deletion commands/audit/sca/go/gloang_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestBuildGoDependencyList(t *testing.T) {
rootNode, uniqueDeps, err := BuildDependencyTree(auditBasicParams)
assert.NoError(t, err)
assert.ElementsMatch(t, uniqueDeps, expectedUniqueDeps, "First is actual, Second is Expected")

// jfrog-ignore: test case
assert.Equal(t, "https://user:[email protected]/artifactory/api/go/test-remote|direct", os.Getenv("GOPROXY"))
assert.NotEmpty(t, rootNode)

Expand Down

0 comments on commit 0fc5abe

Please sign in to comment.