Compare commits

...

7 Commits

Author SHA1 Message Date
Tom Hu
bc5663ec8d fix: use audience 2024-11-19 15:11:06 -05:00
Tom Hu
7f49fedfd5 fix get the action 2024-11-19 14:40:53 -05:00
Tom Hu
038c89eb32 fix: true == true 2024-11-19 14:40:10 -05:00
Tom Hu
3717491f16 fix: just echo 2024-11-19 14:39:18 -05:00
Tom Hu
78f3eea7c7 fix: do the echo 2024-11-19 14:38:09 -05:00
Tom Hu
5cc3f56186 fix: show the url 2024-11-19 14:36:39 -05:00
Tom Hu
08502218f2 dnm: whats the token 2024-11-19 14:31:10 -05:00

View File

@@ -163,10 +163,10 @@ runs:
- name: Get and set token
shell: bash
run: |
if [ ${{ inputs.use_oidc }} == 'true' ];
if [ "${{ inputs.use_oidc }}" == 'true' ];
then
# {"count":1984,"value":"***"}
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=https://codecov.io" | cut -d\" -f6)
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
else
if [ -n ${{ inputs.token }} ];