removing validating config, already handled

This commit is contained in:
zach rice committed 2019-04-13 14:09:16 -05:00
1 parent df8a2d35a8
commit 87d6c588a6
3 files changed
-6

No files matched your search

-1
View File
@@ -4,7 +4,6 @@ title = "sample gitleaks config"
# The output you are seeing here is the default gitleaks config. If GITLEAKS_CONFIG environment variable # The output you are seeing here is the default gitleaks config. If GITLEAKS_CONFIG environment variable
# is set, gitleaks will load configurations from that path. If option --config-path is set, gitleaks will load # is set, gitleaks will load configurations from that path. If option --config-path is set, gitleaks will load
# configurations from that path. Gitleaks does not whitelist anything by default. # configurations from that path. Gitleaks does not whitelist anything by default.
[[rules]] [[rules]]
description = "AWS Key" description = "AWS Key"
regex = '''AKIA[0-9A-Z]{16}''' regex = '''AKIA[0-9A-Z]{16}'''
-4
View File
@@ -48,10 +48,6 @@ func Run(optsL *Options) (*Report, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
if opts.ValidateConfig {
log.Info("valid gitleaks config")
return nil, nil
}
if opts.Disk { if opts.Disk {
// temporary directory where all the gitleaks plain clones will reside // temporary directory where all the gitleaks plain clones will reside
-1
View File
@@ -51,7 +51,6 @@ type Options struct {
Redact bool `long:"redact" description:"redact secrets from log messages and report"` Redact bool `long:"redact" description:"redact secrets from log messages and report"`
Version bool `long:"version" description:"version number"` Version bool `long:"version" description:"version number"`
SampleConfig bool `long:"sample-config" description:"prints a sample config file"` SampleConfig bool `long:"sample-config" description:"prints a sample config file"`
ValidateConfig bool `long:"validate-config" description:"validate gitleaks config"`
} }
// ParseOpts parses the options // ParseOpts parses the options