rebrand and small tweeks

This commit is contained in:
Maidul Islam
2023-05-18 12:04:17 -04:00
parent 8249043826
commit 353ff63298
5 changed files with 44 additions and 38 deletions

View File

@@ -58,7 +58,7 @@ const (
ProtectType
ProtectStagedType
gitleaksAllowSignature = "gitleaks:allow"
gitleaksAllowSignature = "infisical-scan:ignore"
)
// Detector is the main detector struct

View File

@@ -54,7 +54,7 @@ func TestDetect(t *testing.T) {
{
cfgName: "simple",
fragment: Fragment{
Raw: `awsToken := \"AKIALALEMEL33243OKIA\ // gitleaks:allow"`,
Raw: `awsToken := \"AKIALALEMEL33243OKIA\ // infisical-scan:ignore"`,
FilePath: "tmp.go",
},
expectedFindings: []report.Finding{},
@@ -64,7 +64,7 @@ func TestDetect(t *testing.T) {
fragment: Fragment{
Raw: `awsToken := \
\"AKIALALEMEL33243OKIA\ // gitleaks:allow"
\"AKIALALEMEL33243OKIA\ // infisical-scan:ignore"
`,
FilePath: "tmp.go",
@@ -76,7 +76,7 @@ func TestDetect(t *testing.T) {
fragment: Fragment{
Raw: `awsToken := \"AKIALALEMEL33243OKIA\"
// gitleaks:allow"
// infisical-scan:ignore"
`,
FilePath: "tmp.go",