diff --git a/.github/workflows/tox-test.yml b/.github/workflows/tox-test.yml index a181bc1..384c979 100644 --- a/.github/workflows/tox-test.yml +++ b/.github/workflows/tox-test.yml @@ -61,6 +61,8 @@ jobs: run: tox -e static coverage: runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v3 - name: Install RPM @@ -80,10 +82,12 @@ jobs: - name: Install pytest cov run: pip install pytest-cov - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v5 + if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref =='refs/heads/master') with: + use_oidc: true + flags: unit-tests + files: coverage.xml fail_ci_if_error: true verbose: true docs: