Skip to content

Commit

Permalink
fix: Fix the cat command not found error
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 30, 2024
1 parent 19b59cb commit 575580e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -o pipefail

# Set Lacework credentials as inline scanner environment variable
Expand Down Expand Up @@ -50,11 +50,7 @@ rm ${GITHUB_WORKSPACE}/evaluations/${INPUT_IMAGE_NAME}/${INPUT_IMAGE_TAG}/evalua

export SCANNER_EXIT_CODE=$?

if [ "${INPUT_RESULTS_IN_GITHUB_SUMMARY}" = "true" ]; then
echo "### Security Scan" >> $GITHUB_STEP_SUMMARY
echo "<pre>" >> $GITHUB_STEP_SUMMARY
cat results.stdout >> $GITHUB_STEP_SUMMARY
echo "</pre>" >> $GITHUB_STEP_SUMMARY
fi
printf '%s' "$(<results.stdout)" >> $GITHUB_STEP_SUMMARY
printf '%s' "$GITHUB_STEP_SUMMARY"

exit ${SCANNER_EXIT_CODE}

0 comments on commit 575580e

Please sign in to comment.