Skip to content

Introduce loading config from env var GITLEAKS_CONFIG  #745

@zricethezav

Description

@zricethezav

Describe the solution you'd like
Users should be able to load a global config if GITLEAKS_CONFIG env var is set

  -c, --config string          config file path
                               order of precedence:
                               1. --config/-c
                               2. env var `GITLEAKS_CONFIG`
                               3. (--source/-s)/.gitleaks.toml

Additional context
If the user does not provide a config path from one of the three options then the default config will be used.

cc @zricethezav

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions