Skip to content

Commit 3a2487d

Browse files
authored
Swap to OIDC
1 parent ecb7931 commit 3a2487d

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎.github/workflows/Test-coverage.yaml‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ on:
1010

1111
name: Test coverage
1212

13-
permissions: read-all
13+
permissions:
14+
contents: read
15+
id-token: write
1416

1517
jobs:
1618
test-coverage:
@@ -69,8 +71,6 @@ jobs:
6971
print(cov)
7072
covr::to_cobertura(cov)
7173
shell: Rscript {0}
72-
env:
73-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7474

7575
- name: Test coverage (Windows)
7676
if: runner.os == 'Windows'
@@ -86,8 +86,6 @@ jobs:
8686
print(cov)
8787
covr::to_cobertura(cov)
8888
shell: Rscript {0}
89-
env:
90-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9189

9290
- uses: codecov/codecov-action@v5
9391
with:
@@ -96,7 +94,7 @@ jobs:
9694
files: ./cobertura.xml
9795
plugins: noop
9896
disable_search: true
99-
token: ${{ secrets.CODECOV_TOKEN }}
97+
use_oidc: true
10098

10199
- name: Show testthat output
102100
if: always()

0 commit comments

Comments
 (0)