diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15abf468..f003f3e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,8 +34,15 @@ jobs: with: fail_ci_if_error: true verbose: true + - name: Test for the OIDC stuff + run: | + echo -e "\033[0;32m==>\033[0m Requesting OIDC token from '$ACTIONS_ID_TOKEN_REQUEST_URL'" + response=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=$CC_OIDC_AUDIENCE") + echo -e "$response" + CC_TOKEN=$(echo $response | cut -d\" -f6) + echo -e "$CC_TOKEN" - name: Upload coverage to Codecov (oidc) - uses: codecov/codecov-action@main + uses: codecov/codecov-action@v5.4.1-beta with: fail_ci_if_error: true use_oidc: true