From e597739920a66c0e4adc684077f3a9d8bc23382e Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Mon, 18 Nov 2024 21:35:42 -0500 Subject: [PATCH] fix: update to use double quote on oidc --- action.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 982f1a15d..d02352078 100644 --- a/action.yml +++ b/action.yml @@ -166,9 +166,7 @@ runs: if [ ${{ inputs.use_oidc }} == 'true' ]; then # {"count":1984,"value":"***"} - MEOW=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange") - echo $MEOW - CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange" | cut -d\' -f6) + CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange" | cut -d\" -f6) echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV" else if [ -n ${{ inputs.token }} ];