Skip to content

Commit

Permalink
Use OIDC authentication for codecov (#1771)
Browse files Browse the repository at this point in the history
  • Loading branch information
shatakshiiii authored May 22, 2024
1 parent 031938a commit dde650b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
platforms: linux,macos
tox:
name: ${{ matrix.name }} / python ${{ matrix.python_version }}
environment: test
permissions:
id-token: write
checks: read
runs-on: ubuntu-20.04
needs: pre
strategy:
Expand Down Expand Up @@ -87,8 +89,8 @@ jobs:
with:
name: ${{ matrix.passed_name }}
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true # optional (default = false)
use_oidc: true # cspell:ignore oidc
- name: Archive logs
if: always()
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit dde650b

Please sign in to comment.