Skip to content

Commit

Permalink
fix: change debug to argument instead of variable (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Elizondo authored Aug 12, 2022
1 parent 065cd8d commit 3393a74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

export LW_ACCOUNT_NAME=${INPUT_LW_ACCOUNT_NAME}
export LW_ACCESS_TOKEN=${INPUT_LW_ACCESS_TOKEN}
export LW_SCANNER_ENABLE_DEBUGGING=${INPUT_LW_SCANNER_ENABLE_DEBUGGING:-false}

# Disable update prompt for lw-scanner if newer version is available unless explicitly set
export LW_SCANNER_DISABLE_UPDATES=${LW_SCANNER_DISABLE_UPDATES:-true}
Expand All @@ -21,6 +20,9 @@ fi
if [ ! -z "${INPUT_BUILD_REPORT_FILE_NAME}" ]; then
export SCANNER_PARAMETERS="${SCANNER_PARAMETERS} --html-file ${INPUT_BUILD_REPORT_FILE_NAME}"
fi
if [ ${INPUT_LW_SCANNER_ENABLE_DEBUGGING} = "true" ]; then
export SCANNER_PARAMETERS="${SCANNER_PARAMETERS} --debug"
fi

# Remove old scanner evaluation, if cached somehow
rm ${GITHUB_WORKSPACE}/evaluations/${INPUT_IMAGE_NAME}/${INPUT_IMAGE_TAG}/evaluation_*.json &>/dev/null || true
Expand Down

0 comments on commit 3393a74

Please sign in to comment.