Open benoitgoyette opened 1 year ago
Fixes and adds arguments that are passed to gitleaks application.
gitleaks
Fixed GITLEAKS_CONFIG that didn't seem to be used.
GITLEAKS_CONFIG
While testing, I discovered that passing multiple arguments in the same string does not yield the same result and appending multiple arguments
args.push(`-c ${process.env.GITLEAKS_CONFIG}`); // raises an error args.push("-c", process.env.GITLEAKS_CONFIG); // works
Added these options
GITLEAKS_SILENT
true
-v --redact
GITLEAKS_NO_GIT
--no-git
GITLEAKS_BASELINE_FILE
-b path/file
GITLEAKS_LOG_LEVEL
@benoitgoyette
Fixes and adds arguments that are passed to
gitleaks
application.Fixed
GITLEAKS_CONFIG
that didn't seem to be used.While testing, I discovered that passing multiple arguments in the same string does not yield the same result and appending multiple arguments
Added these options
GITLEAKS_SILENT
, iftrue
removes the-v --redact
argumentsGITLEAKS_NO_GIT
, iftrue
sets the--no-git
argument, discards the other versions and baseline options.GITLEAKS_BASELINE_FILE
, if set, added the-b path/file
argument.GITLEAKS_LOG_LEVEL
, if set, changes the log level