From 66c15840a99b24556076b4180162b92974537a70 Mon Sep 17 00:00:00 2001 From: Lei Jin Date: Wed, 30 Oct 2024 21:24:46 +0000 Subject: [PATCH] fix: Fix the cat command not found error Signed-off-by: Lei Jin --- docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 7f8763b..b9de47e 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -o pipefail # Set Lacework credentials as inline scanner environment variable @@ -53,7 +53,7 @@ export SCANNER_EXIT_CODE=$? if [ "${INPUT_RESULTS_IN_GITHUB_SUMMARY}" = "true" ]; then echo "### Security Scan" >> $GITHUB_STEP_SUMMARY echo "
" >> $GITHUB_STEP_SUMMARY
-    cat results.stdout >> $GITHUB_STEP_SUMMARY
+    printf '%s' "$(> $GITHUB_STEP_SUMMARY
     echo "
" >> $GITHUB_STEP_SUMMARY fi