mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-08 03:57:26 +00:00
fix: cut the token
This commit is contained in:
parent
f745092156
commit
f35554cfff
1 changed files with 2 additions and 1 deletions
|
|
@ -152,7 +152,8 @@ runs:
|
|||
if: ${{ inputs.use_oidc == 'true' }}
|
||||
shell: bash
|
||||
run: |
|
||||
CODECOV_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange")
|
||||
# {"count":1984,"value":"***"}
|
||||
CODECOV_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange" | cut -d\' -f6)
|
||||
echo "CODECOV_TOKEN=$CODECOV_TOKEN" >> $GITHUB_ENV
|
||||
echo $CODECOV_TOKEN
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue