feat: redact gitleaks secrets from output (#5040)

This commit is contained in:
Marco Ferrari 2023-12-22 09:24:16 +01:00 committed by GitHub
parent 3434940f2c
commit 61d0c6992b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"