Skip to content

Commit

Permalink
chore: use codecov token instead of OIDC (#32129)
Browse files Browse the repository at this point in the history
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 codecov/codecov-action#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*
  • Loading branch information
iliapolo authored Nov 14, 2024
1 parent 36d4d1a commit fb97684
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit fb97684

Please sign in to comment.