Skip to content

Commit 330a919

Browse files
chore(codecov-action): update to codecov/codecov-action@v5. Use OIDC instead of codecov token (#33246)
### Issue # (if applicable) Closes # Resolve intermittent failures for codecov-action complaining about CODECOV_TOKEN. https://github.com/aws/aws-cdk/actions/runs/12987465886/job/36314301605 for #33174 ### Reason for this change Resolve intermittent codecov-action failures by upgrading codecov-actions and moving to OIDC instead of codecov token. ### Description of changes Updated codecov.yml ### Describe any new or updated permissions being added ### Description of how you validated changes N/A ### Checklist - [ x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 0895fde commit 330a919

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/codecov.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
name: collect
1212
if: github.repository == 'aws/aws-cdk'
1313
runs-on: ubuntu-latest
14+
permissions:
15+
id-token: write
1416
steps:
1517
- name: Checkout
1618
uses: actions/checkout@v4
@@ -34,9 +36,9 @@ jobs:
3436
run: cd packages/aws-cdk && yarn test
3537

3638
- name: Upload results to Codecov
37-
uses: codecov/codecov-action@v4
39+
uses: codecov/codecov-action@v5
3840
with:
3941
files: packages/aws-cdk/coverage/cobertura-coverage.xml,packages/aws-cdk-lib/coverage/cobertura-coverage.xml
4042
fail_ci_if_error: true
4143
flags: suite.unit
42-
token: ${{ secrets.CODECOV_TOKEN }}
44+
use_oidc: true

0 commit comments

Comments
 (0)