From fb97684de54da5e2815851edda50bebe980f8eb5 Mon Sep 17 00:00:00 2001 From: Eli Polonsky Date: Thu, 14 Nov 2024 12:29:25 +0200 Subject: [PATCH] chore: use codecov token instead of OIDC (#32129) For PR from forks, OIDC doesn't currently work with the latest version of the GitHub Action. [Example failure](https://github.com/aws/aws-cdk/actions/runs/11834319601/job/32974759899?pr=32121): ```console Run codecov/codecov-action@v4 Error: Codecov: Failed to get OIDC token with url: https://codecov.io/. Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable ``` See https://github.com/codecov/codecov-action/issues/1594 Revert back to token until we validate a fix. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .github/workflows/codecov.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index ec63ae9bdb394..0920cc4e5515f 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -11,8 +11,6 @@ jobs: name: collect if: github.repository == 'aws/aws-cdk' runs-on: ubuntu-latest - permissions: - id-token: write steps: - name: Checkout uses: actions/checkout@v4 @@ -35,4 +33,4 @@ jobs: directory: packages/aws-cdk/coverage fail_ci_if_error: true flags: suite.unit - use_oidc: true + token: ${{ secrets.CODECOV_TOKEN }}