From 095cfe09c682a0e3d0a2d2ed15de74b77b568f20 Mon Sep 17 00:00:00 2001 From: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com> Date: Tue, 19 Nov 2024 18:21:13 -0500 Subject: [PATCH] fix: strip out a trailing \/n from input tokens (#1679) --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index a280db87c..b3ec2321f 100644 --- a/action.yml +++ b/action.yml @@ -176,7 +176,7 @@ runs: else if [ -n ${{ inputs.token }} ]; then - CC_TOKEN=${{ inputs.token }} + CC_TOKEN=$(echo ${{ inputs.token }} | tr -d '\n') echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV" fi fi