From 890e9d5be73b82d01c56d49fee6747e127757340 Mon Sep 17 00:00:00 2001 From: Eduardo Serrano Date: Wed, 22 Mar 2023 18:57:52 +0000 Subject: [PATCH] Add codecov token to avoid intermittent failures --- .github/workflows/build-test-package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-test-package.yml b/.github/workflows/build-test-package.yml index 911955c5..dd33f277 100644 --- a/.github/workflows/build-test-package.yml +++ b/.github/workflows/build-test-package.yml @@ -212,6 +212,7 @@ jobs: uses: codecov/codecov-action@v3 if: matrix.os == 'ubuntu-latest' # this job is on a matrix run but I only want to upload code coverage to Codecov once with: + token: ${{ secrets.CODECOV_TOKEN }} # even though it's not required for public repos it helps with intermittent failures caused by https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954, https://github.com/codecov/codecov-action/issues/598, files: ${{ steps.dotnet-test.outputs.test-coverage-file }} fail_ci_if_error: true - name: Log Codecov info