Skip to content

Commit

Permalink
fix: use audience
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Nov 19, 2024
1 parent 7f49fed commit bc5663e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,8 @@ runs:
if [ "${{ inputs.use_oidc }}" == 'true' ];
then
# {"count":1984,"value":"***"}
echo "meow"
echo "$ACTIONS_ID_TOKEN_REQUEST_URL"
#curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange"
#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
#echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://codecov.io" | cut -d\" -f6)
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
else
if [ -n ${{ inputs.token }} ];
then
Expand Down

0 comments on commit bc5663e

Please sign in to comment.