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