mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-15 07:27:24 +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' }}
|
if: ${{ inputs.use_oidc == 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
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=$CODECOV_TOKEN" >> $GITHUB_ENV
|
||||||
echo $CODECOV_TOKEN
|
echo $CODECOV_TOKEN
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue