From d7740be84f4f658c7540734e68e9ddbb1df0c444 Mon Sep 17 00:00:00 2001 From: shmokmt <32533860+shmokmt@users.noreply.github.com> Date: Mon, 27 Jan 2025 13:59:02 +0900 Subject: [PATCH] unquote env vars. Space in these env vars should be treated as-is https://github.com/reviewdog/action-staticcheck/pull/64#discussion_r1929817393 --- script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.sh b/script.sh index 9260a14..06d805b 100755 --- a/script.sh +++ b/script.sh @@ -15,7 +15,7 @@ echo '::endgroup::' echo '::group:: Running staticcheck with reviewdog 🐶 ...' -staticcheck "${INPUT_STATICCHECK_FLAGS}" -f=json "${INPUT_TARGET:-.}" \ +staticcheck ${INPUT_STATICCHECK_FLAGS} -f=json ${INPUT_TARGET:-.} \ | jq -f "${GITHUB_ACTION_PATH}/to-rdjsonl.jq" -c | \ reviewdog \ -f="rdjsonl" \ @@ -24,7 +24,7 @@ staticcheck "${INPUT_STATICCHECK_FLAGS}" -f=json "${INPUT_TARGET:-.}" \ -filter-mode="${INPUT_FILTER_MODE}" \ -fail-on-error="${INPUT_FAIL_ON_ERROR}" \ -level="${INPUT_LEVEL}" \ - "${INPUT_REVIEWDOG_FLAGS}" + ${INPUT_REVIEWDOG_FLAGS} exit_code=$? echo '::endgroup::'