From c499f7d2526d688b80992f2624878027acbd24d0 Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Mon, 22 Apr 2024 23:51:15 +0800 Subject: [PATCH] ci: upload coverage with token --- .github/workflows/codecov.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 4561d660..1547da3a 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -12,8 +12,6 @@ env: jobs: codecov: runs-on: ubuntu-latest - permissions: - id-token: write steps: - uses: actions/checkout@v2 - name: Set up toolchain @@ -45,9 +43,11 @@ jobs: run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov; fi - name: Generate coverage run: grcov . --binary-path target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov - - uses: codecov/codecov-action@v4 + - name: Upload coverage + uses: codecov/codecov-action@v4 with: files: ./coverage.lcov flags: rust fail_ci_if_error: true - use_oidc: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}