From 60f7f54109e54b9ee3271407a150cb6694931ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstro=CC=88m?= Date: Tue, 20 Feb 2024 20:27:49 -0300 Subject: [PATCH] fix: properly quote output --- lib/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.sh b/lib/main.sh index f301ed0..8270605 100644 --- a/lib/main.sh +++ b/lib/main.sh @@ -49,7 +49,7 @@ function run() { # to how output formatting works. if [[ -n "${OUTPUT_FORMAT}" ]]; then OUTPUT=$(eval "${HADOLINT_PATH}" --no-fail --no-color "${CONFIG}" -f "${OUTPUT_FORMAT}" "${DOCKERFILE}") - echo "hadolint_output=${OUTPUT//$'\n'/'%0A'} >> ${GITHUB_OUTPUT}" + echo hadolint_output="${OUTPUT//$'\n'/'%0A'}" >> "${GITHUB_OUTPUT}" fi # Eval to remove empty vars