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

@@ -32,7 +32,7 @@ import (
"github.com/spf13/viper"
)
//go:embed gitleaks.toml
//go:embed infisical-scan.toml
var DefaultConfig string
// use to keep track of how many configs we can extend
@@ -41,6 +41,10 @@ var extendDepth int
const maxExtendDepth = 2
const DefaultScanConfigFileName = ".infisical-scan.toml"
const DefaultScanConfigEnvName = "INFISICAL_SCAN_CONFIG"
const DefaultInfisicalIgnoreFineName = ".infisicalignore"
// ViperConfig is the config struct used by the Viper config package
// to parse the config file. This struct does not include regular expressions.
// It is used as an intermediary to convert the Viper config to the Config struct.

View File

@@ -14,7 +14,7 @@ title = "gitleaks config"
[allowlist]
description = "global allow lists"
paths = [
'''gitleaks.toml''',
'''infisical-scan.toml''',
'''(.*?)(jpg|gif|doc|docx|zip|xls|pdf|bin|svg|socket)$''',
'''(go.mod|go.sum)$''',
'''gradle.lockfile''',