Skip to content

Commit

Permalink
Add OIDC for codecov upload
Browse files Browse the repository at this point in the history
  • Loading branch information
a-feld committed Sep 12, 2024
1 parent dbce972 commit 3e3c67e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ on:

jobs:
test:
permissions:
id-token: write
env:
PY_COLORS: 0

Expand All @@ -41,7 +43,7 @@ jobs:
architecture: x64
- uses: actions/setup-python@v5
with:
python-version: '>=3.9.8 <3.10'
python-version: ">=3.9.8 <3.10"
architecture: x64
- uses: actions/setup-python@v5
with:
Expand All @@ -68,3 +70,5 @@ jobs:
run: tox run-parallel --parallel auto --parallel-live --parallel-no-spinner --colored no
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
use_oidc: true

0 comments on commit 3e3c67e

Please sign in to comment.