From 61d0c6992bbe6fb4430f88fe06557ad85c5ff602 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Fri, 22 Dec 2023 09:24:16 +0100 Subject: [PATCH] feat: redact gitleaks secrets from output (#5040) --- lib/linter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linter.sh b/lib/linter.sh index b920d97f..d5e8e86f 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -939,7 +939,7 @@ if [ "${GITHUB_ACTIONS_COMMAND_ARGS}" = "null" ]; then else LINTER_COMMANDS_ARRAY['GITHUB_ACTIONS']="actionlint -config-file ${GITHUB_ACTIONS_LINTER_RULES} ${GITHUB_ACTIONS_COMMAND_ARGS}" fi -LINTER_COMMANDS_ARRAY['GITLEAKS']="gitleaks detect --no-banner --no-git -c ${GITLEAKS_LINTER_RULES} -v -s" +LINTER_COMMANDS_ARRAY['GITLEAKS']="gitleaks detect --no-banner --no-git --redact --config ${GITLEAKS_LINTER_RULES} --verbose --source" LINTER_COMMANDS_ARRAY['GHERKIN']="gherkin-lint -c ${GHERKIN_LINTER_RULES}" LINTER_COMMANDS_ARRAY['GO_MODULES']="golangci-lint run -c ${GO_LINTER_RULES}" LINTER_COMMANDS_ARRAY['GO']="${LINTER_COMMANDS_ARRAY['GO_MODULES']} --fast"