Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
guyp-orca authored Jan 19, 2023
1 parent 797ca4d commit dd25979
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}")
Expand Down

0 comments on commit dd25979

Please sign in to comment.