Put quotes around ${{ inputs.token }} in action.yml (#1721)

This commit is contained in:
John T. Wodder II
2024-12-16 09:14:46 -05:00
committed by GitHub
parent d93fc22ce0
commit 34ef57048d

View File

@@ -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