From c8357cb9cfb13b0e479790ab7ee71c23cdba0438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Fri, 15 Nov 2024 15:16:09 +0100 Subject: [PATCH] [chore] Fix codecov action usage (#6333) Same as https://github.com/open-telemetry/opentelemetry-go/pull/5979. This change makes sure that an unsuccessful upload will fail the workflow as this does not happen at the moment. Additionally, it configures the codecov action to be tokenless. --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5184c3a3d71..19629c76b7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,9 +87,8 @@ jobs: cp coverage.html $TEST_RESULTS - name: Upload coverage report uses: codecov/codecov-action@v5.0.0 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: + fail_ci_if_error: true files: ./coverage.txt verbose: true - name: Store coverage test output