Skip to content

Commit

Permalink
Use OIDC authentication for codecov upload (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed May 22, 2024
1 parent cb3650d commit eb5dc30
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
matrix: ${{ fromJson(needs.pre.outputs.matrix) }}
env:
FORCE_COLOR: 1
environment: test
permissions:
id-token: write
steps:
- name: Check out src from Git
uses: actions/checkout@v4
Expand Down Expand Up @@ -89,9 +90,9 @@ jobs:
uses: codecov/codecov-action@v4
with:
name: ${{ matrix.name }}
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
fail_ci_if_error: false
fail_ci_if_error: true
use_oidc: true # cspell:ignore oidc

check: # This job does nothing and is only used for the branch protection
if: always()
Expand Down

0 comments on commit eb5dc30

Please sign in to comment.