From 426b87ce79b21c22d2e79048b6d87c82ba3b6728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82otka?= Date: Fri, 14 Jan 2022 09:37:46 +0100 Subject: [PATCH] Don't truncate multiple lines in outputs. --- entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 8af55ff..40142e6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -16,5 +16,8 @@ output=$(/security-checker ${PATH} ${FORMAT} $*) echo "$output" if [ ! -z "${GITHUB_ACTIONS}" ]; then + output="${output//'%'/'%25'}" + output="${output//$'\n'/'%0A'}" + output="${output//$'\r'/'%0D'}" echo "::set-output name=security::$output" fi