From c192df098ef0a3279cc60c81436e607fa2799501 Mon Sep 17 00:00:00 2001 From: Nobuchika Tanaka Date: Sun, 6 Feb 2022 19:19:37 +0900 Subject: [PATCH] Set pipefail option (Fixes #582) - To avoid the pipe swallows the exit code of the cfn_nag_scan command --- github-action/entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/github-action/entrypoint.sh b/github-action/entrypoint.sh index 69cd9a4a..e2463c88 100755 --- a/github-action/entrypoint.sh +++ b/github-action/entrypoint.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -o pipefail + echo "::debug::Using input path: ${INPUT_INPUT_PATH}" echo "::debug::Using output path: ${INPUT_OUTPUT_PATH}"