Skip to content

Commit e1c506b

Browse files
authored
Use Codecov OIDC authentication (#206)
* Add use_oidc to every codecov step * Grant id-token: write to the upload jobs * Drop the CODECOV_TOKEN secret
1 parent 6de383b commit e1c506b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
- uses: astral-sh/setup-uv@v7
2424
- run: uv run --group docs sphinx-build -W -b doctest -b spelling -b html docs docs/_build
2525
PyTest:
26+
permissions:
27+
contents: read
28+
id-token: write
2629
needs:
2730
- dist
2831
runs-on: ubuntu-latest
@@ -56,5 +59,5 @@ jobs:
5659
- run: uv run ${{ matrix.extras }} --with Django~=${{ matrix.django-version }}.0 pytest
5760
- uses: codecov/codecov-action@v7
5861
with:
59-
token: ${{ secrets.CODECOV_TOKEN }}
62+
use_oidc: true
6063
flags: python-${{ matrix.python-version }}-django-${{ matrix.django-version }}

0 commit comments

Comments
 (0)