From dd259790d0a4648b5a091cc37e290c97361ad2f8 Mon Sep 17 00:00:00 2001 From: guyp-orca <104493801+guyp-orca@users.noreply.github.com> Date: Thu, 19 Jan 2023 12:44:53 +0200 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index e57be9f..c59e31d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -77,7 +77,7 @@ function set_fs_scan_flags() { if [ "${INPUT_PATH}" ]; then SCAN_FLAGS+=("${INPUT_PATH}") fi - if [ "${DISABLE_SECRET}" = "true" ]; then + if [ "${INPUT_DISABLE_SECRET}" = "true" ]; then SCAN_FLAGS+=(--disable-secret) fi if [ "${INPUT_EXCEPTIONS_FILEPATHS}" ]; then @@ -86,11 +86,11 @@ function set_fs_scan_flags() { if [ "${INPUT_SHOW_FAILED_ISSUES_ONLY}" = "true" ]; then SCAN_FLAGS+=(--show-failed-issues-only) fi - if [ "${HIDE_VULNERABILITIES}" = "true" ]; then + if [ "${INPUT_HIDE_VULNERABILITIES}" = "true" ]; then SCAN_FLAGS+=(--hide-vulnerabilities) fi - if [ "${NUM_CPU}" ]; then - SCAN_FLAGS+=(--num-cpu "${NUM_CPU}") + if [ "${INPUT_NUM_CPU}" ]; then + SCAN_FLAGS+=(--num-cpu "${INPUT_NUM_CPU}") fi if [ "${FORMATS_FOR_JSON}" ]; then SCAN_FLAGS+=(--format "${FORMATS_FOR_JSON}")