Skip to content

Commit f4eba01

Browse files
authored
Update coverage.yml to use OIDC for Codecov (#8474)
* Update coverage.yml to use OIDC for Codecov Always prefer the tokenless method if available. There are no needs to use permanent token here for public repo. It supports verifying repo via OIDC. * fix & clarify permissions use
1 parent 3fd24bb commit f4eba01

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/coverage.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ env:
1919
jobs:
2020
coverage:
2121
runs-on: ubuntu-24.04-arm
22+
permissions:
23+
actions: write # For build cache overwriting
24+
id-token: write # For CodeCov OIDC
2225
env:
2326
OS: ubuntu-24.04-arm
2427
OCAML_COMPILER: 5.3.0
@@ -200,4 +203,4 @@ jobs:
200203
with:
201204
files: _coverage/coverage.json
202205
fail_ci_if_error: false
203-
token: ${{ secrets.CODECOV_TOKEN }}
206+
use_oidc: true

0 commit comments

Comments
 (0)