mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
removing validating config, already handled
This commit is contained in:
1 parent
df8a2d35a8
commit
87d6c588a6
3 files changed
+6
-12
No files matched your search
@@ -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}'''
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
+6
-7
@@ -45,13 +45,12 @@ type Options struct {
|
|||||||
// TODO: IncludeMessages string `long:"messages" description:"include commit messages in audit"`
|
// TODO: IncludeMessages string `long:"messages" description:"include commit messages in audit"`
|
||||||
|
|
||||||
// Output options
|
// Output options
|
||||||
Log string `short:"l" long:"log" description:"log level"`
|
Log string `short:"l" long:"log" description:"log level"`
|
||||||
Verbose bool `short:"v" long:"verbose" description:"Show verbose output from gitleaks audit"`
|
Verbose bool `short:"v" long:"verbose" description:"Show verbose output from gitleaks audit"`
|
||||||
Report string `long:"report" description:"path to write report file. Needs to be csv or json"`
|
Report string `long:"report" description:"path to write report file. Needs to be csv or json"`
|
||||||
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
|
||||||
|
|||||||
Reference in new issue
Block a user