Skip to content

Commit

Permalink
chore:Upgrade inline scanner version to 0.27.0 (#75)
Browse files Browse the repository at this point in the history
* chore:Upgrade inline scanner version to 0.27.0

Signed-off-by: Lei Jin <[email protected]>

* Fix: Fix the image location for local scanner

Signed-off-by: Lei Jin <[email protected]>

* fix: Delete tee command since it is not installed in the new image

Signed-off-by: Lei Jin <[email protected]>

---------

Signed-off-by: Lei Jin <[email protected]>
  • Loading branch information
leijin-lw authored Oct 2, 2024
1 parent 0a0bd15 commit 74fb2c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM lacework/lacework-inline-scanner:0.23.2
FROM lacework/lacework-inline-scanner:0.27.0
COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
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} > 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 74fb2c2

Please sign in to comment.