diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6bc400424..4c6106e93 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -78,6 +78,14 @@ jobs: name: codecov-demo verbose: true token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload coverage to Codecov (oidc) + uses: ./ + with: + files: ./coverage/script/coverage-final.json + flags: script,${{ matrix.os }} + name: codecov-script + use_oidc: true + verbose: true - name: Upload coverage to Codecov (version) uses: ./ with: diff --git a/action.yml b/action.yml index 36e11f2fa..d02352078 100644 --- a/action.yml +++ b/action.yml @@ -166,7 +166,7 @@ runs: 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=api://AzureADTokenExchange" | cut -d\" -f6) echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV" else if [ -n ${{ inputs.token }} ];