Skip to content

Commit 2a663f7

Browse files
authored
CI: Use OIDC token for codecov uploading (#3163)
1 parent 4fbf32f commit 2a663f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci_tests.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
test:
5050
name: ${{ matrix.os }} - Python ${{ matrix.python-version }} / NumPy ${{ matrix.numpy-version }}
5151
runs-on: ${{ matrix.os }}
52+
permissions:
53+
id-token: write # This is required for requesting OIDC token for codecov
5254
strategy:
5355
fail-fast: false
5456
matrix:
@@ -161,7 +163,7 @@ jobs:
161163
- name: Upload coverage to Codecov
162164
uses: codecov/[email protected]
163165
with:
166+
use_oidc: true
164167
file: ./coverage.xml # optional
165168
env_vars: OS,PYTHON,NUMPY
166169
fail_ci_if_error: false
167-
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)