From 34ef57048dd0d0f5b23912db0e56e083fa649c9a Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Mon, 16 Dec 2024 09:14:46 -0500 Subject: [PATCH] Put quotes around `${{ inputs.token }}` in `action.yml` (#1721) --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 6b340f8a8..f3575da4b 100644 --- a/action.yml +++ b/action.yml @@ -177,9 +177,9 @@ runs: then echo "CC_TOKEN=${{ env.CODECOV_TOKEN }}" >> "$GITHUB_ENV" else - if [ -n ${{ inputs.token }} ]; + if [ -n "${{ inputs.token }}" ]; then - CC_TOKEN=$(echo ${{ inputs.token }} | tr -d '\n') + CC_TOKEN=$(echo "${{ inputs.token }}" | tr -d '\n') echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV" fi fi