Skip to content

Commit 6dc0c42

Browse files
authored
ci: use OIDC for codecov-action (#327)
Replace token-based authentication with OIDC (OpenID Connect) for codecov-action. This is more secure and eliminates the need to manage upload tokens. Changes: - Add use_oidc: true to codecov-action configuration - Add id-token: write permission at workflow level - Remove token parameter from codecov-action (ignored when using OIDC) This improves security and follows codecov-action best practices. Generated by the task: njzjz-bot/njzjz-bot#25.
1 parent 92bbd6d commit 6dc0c42

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Python unit-tests
22

33
on:
4-
- push
5-
- pull_request
4+
- push
5+
- pull_request
66

77
jobs:
88
build:
@@ -27,3 +27,7 @@ jobs:
2727
- uses: codecov/codecov-action@v5
2828
env:
2929
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
30+
with:
31+
use_oidc: true
32+
permissions:
33+
id-token: write

0 commit comments

Comments
 (0)