diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 57023a5a..8a001760 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -7,7 +7,9 @@ on: name: test-coverage.yaml -permissions: read-all +permissions: + contents: read + id-token: write jobs: test-coverage: @@ -40,12 +42,12 @@ jobs: - uses: codecov/codecov-action@v5 with: - # Fail if error if not on PR, or if on PR and token is given + # Fail if error if not on PR, or if on PR and token is given--dependabot is treated like fork fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }} files: ./cobertura.xml plugins: noop disable_search: true - token: ${{ secrets.CODECOV_TOKEN }} + use_oidc: true - name: Show testthat output if: always() @@ -56,7 +58,7 @@ jobs: - name: Upload test results if: failure() - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@v7 with: name: coverage-test-failures path: ${{ runner.temp }}/package