From ca102c687d68bf070104b6d594b3f508f869dcb9 Mon Sep 17 00:00:00 2001 From: Luke Hagar Date: Thu, 11 Sep 2025 22:10:37 +0000 Subject: [PATCH] Refactor COMMENT_BODY construction in entrypoint.sh to use printf for improved formatting of markdown report. --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 224ff16..ef3c309 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -93,7 +93,7 @@ if [ "${COMMENT_PR_ARG}" = "true" ]; then echo "[slinky] GITHUB_REPOSITORY not set; skipping PR comment." else BODY_CONTENT="$(cat "${MD_OUT_ARG}")" - COMMENT_BODY="\n${BODY_CONTENT}" + COMMENT_BODY="$(printf '%s\n%s\n' '' "${BODY_CONTENT}")" # Try to find an existing slinky comment to update COMMENTS_JSON=$(curl -sS -H "Authorization: Bearer ${GITHUB_TOKEN}" \