Skip to content

Commit 938acdc

Browse files
committed
CI: use OIDC for CodeCov
This uses a short-lived token which is better for security.
1 parent 14de2de commit 938acdc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ jobs:
156156
157157
test-with-coverage:
158158
runs-on: ubuntu-latest
159-
159+
permissions:
160+
id-token: write
160161
needs:
161162
- build-test-env-base
162163
- run-black-check
@@ -203,7 +204,7 @@ jobs:
203204
with:
204205
fail_ci_if_error: false
205206
verbose: false
206-
token: ${{ secrets.CODECOV_TOKEN }}
207+
use_oidc: true
207208

208209
test-wheels:
209210
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)