Skip to content

Commit

Permalink
Switch codecov uploads to use OIDC as tokenless is no-longer supported
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Aug 28, 2024
1 parent 59d0282 commit afc4e9f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
schedule:
- cron: '0 8 * * *'

permissions:
id-token: write
contents: read

jobs:
test:
name: Test
Expand Down Expand Up @@ -55,6 +59,7 @@ jobs:
with:
files: ./test_results/opensearch.lcov
flags: unit
use_oidc: true

- name: Save OpenSearch logs
if: failure()
Expand Down Expand Up @@ -112,6 +117,7 @@ jobs:
with:
files: ./client/test_results/opensearch.lcov
flags: integration
use_oidc: true

- name: Save OpenSearch logs
if: failure()
Expand Down Expand Up @@ -203,9 +209,11 @@ jobs:
OPENSEARCH_PASSWORD: ${{ steps.opensearch.outputs.admin_password }}

- uses: codecov/codecov-action@v4
if: github.event_name != 'schedule'
with:
files: ./client/test_results/opensearch.lcov
flags: integration
use_oidc: true

- name: Save OpenSearch logs
if: failure()
Expand Down

0 comments on commit afc4e9f

Please sign in to comment.