diff --git a/action.yml b/action.yml index 3c1c3ad..f96ed80 100644 --- a/action.yml +++ b/action.yml @@ -37,7 +37,7 @@ inputs: description: "Log level (trace, debug, info, warn, error, fatal) (default: info)" required: false default: "info" - exit-code: + exit_code: description: "exit code when leaks have been encountered (default 1)" required: false default: 1 diff --git a/entrypoint.sh b/entrypoint.sh index 5729e1c..72d9397 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -40,7 +40,7 @@ INPUT_REDACT=$(default 'true' 'false' "${INPUT_REDACT}" 'true') INPUT_FAIL=$(default 'true' 'false' "${INPUT_FAIL}" 'true') INPUT_VERBOSE=$(default 'true' 'false' "${INPUT_VERBOSE}" 'true') INPUT_LOG_LEVEL=$(default 'info' "${INPUT_LOG_LEVEL}" "${INPUT_LOG_LEVEL}" 'true') -INPUT_EXIT_CODE=$(default 1 0 "${INPUT_EXIT_CODE}" 'true') +INPUT_EXIT_CODE=$(default 1 "${INPUT_EXIT_CODE}" "${INPUT_EXIT_CODE}" 'true') echo "----------------------------------" echo "INPUT PARAMETERS"