Skip to content

Commit

Permalink
Fix: Fix the image location for local scanner
Browse files Browse the repository at this point in the history
Signed-off-by: Lei Jin <lei.jin@lacework.net>
  • Loading branch information
leijin-lw committed Oct 2, 2024
1 parent 64051f7 commit 6471807
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ fi
# Remove old scanner evaluation, if cached somehow
rm ${GITHUB_WORKSPACE}/evaluations/${INPUT_IMAGE_NAME}/${INPUT_IMAGE_TAG}/evaluation_*.json &>/dev/null || true

/opt/lacework/lw-scanner image evaluate ${INPUT_IMAGE_NAME} ${INPUT_IMAGE_TAG} \
/app/vulnerability/scanner/lacework/local-scanner/main/local-scanner.binary image evaluate ${INPUT_IMAGE_NAME} ${INPUT_IMAGE_TAG} \
--build-plan ${GITHUB_REPOSITORY} \
--build-id ${GITHUB_RUN_ID} \
--data-directory ${GITHUB_WORKSPACE} \
--policy \
--fail-on-violation-exit-code 1 ${SCANNER_PARAMETERS} | tee results.stdout
--fail-on-violation-exit-code 1 ${SCANNER_PARAMETERS} | sudo tee results.stdout

export SCANNER_EXIT_CODE=$?

Expand All @@ -57,4 +57,4 @@ if [ "${INPUT_RESULTS_IN_GITHUB_SUMMARY}" = "true" ]; then
echo "</pre>" >> $GITHUB_STEP_SUMMARY
fi

exit ${SCANNER_EXIT_CODE}
exit ${SCANNER_EXIT_CODE}

0 comments on commit 6471807

Please sign in to comment.