Skip to content

Commit f78d4b8

Browse files
authored
fix: Fix the cat command not found error (#79)
Signed-off-by: Lei Jin <lei.jin@lacework.net>
1 parent 19b59cb commit f78d4b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
set -o pipefail
33

44
# Set Lacework credentials as inline scanner environment variable
@@ -53,7 +53,7 @@ export SCANNER_EXIT_CODE=$?
5353
if [ "${INPUT_RESULTS_IN_GITHUB_SUMMARY}" = "true" ]; then
5454
echo "### Security Scan" >> $GITHUB_STEP_SUMMARY
5555
echo "<pre>" >> $GITHUB_STEP_SUMMARY
56-
cat results.stdout >> $GITHUB_STEP_SUMMARY
56+
printf '%s' "$(<results.stdout)" >> $GITHUB_STEP_SUMMARY
5757
echo "</pre>" >> $GITHUB_STEP_SUMMARY
5858
fi
5959

0 commit comments

Comments
 (0)