From 10fd48af7020be6661dc7bdb72091a01fc7e8a71 Mon Sep 17 00:00:00 2001 From: mbooz Date: Mon, 22 Jun 2026 11:12:15 -0400 Subject: [PATCH] Update codecov-action auth and flags Updates codecov-action to use OIDC authentication, and adds the unit-tests flag to codecov reports. --- .github/workflows/tox-test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tox-test.yml b/.github/workflows/tox-test.yml index 6b4b4c2..2c04753 100644 --- a/.github/workflows/tox-test.yml +++ b/.github/workflows/tox-test.yml @@ -53,6 +53,8 @@ jobs: run: tox -e static coverage: runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Setup Python @@ -70,9 +72,12 @@ jobs: - name: Install pytest cov run: pip install pytest-cov - name: Upload coverage to Codecov - uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5 + uses: codecov/codecov-action@v5 + if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref =='refs/heads/master') with: - token: ${{ secrets.CODECOV_TOKEN }} + use_oidc: true + flags: unit-tests + files: coverage.xml fail_ci_if_error: true verbose: true bandit: