From 5715ba9042b00566e823f7a3f1ca4d4d3e35e520 Mon Sep 17 00:00:00 2001 From: Julien Pinsonneau Date: Tue, 16 Apr 2024 13:08:02 +0200 Subject: [PATCH] add env token from secret --- .github/workflows/pull_request.yml | 5 ++++- .github/workflows/push_image.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 1b15e5970..e799d0f34 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -29,10 +29,13 @@ jobs: - name: Report coverage if: ${{ matrix.go == '1.21' }} uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: files: ./cover.out flags: unittests - fail_ci_if_error: false + fail_ci_if_error: true + verbose: true bundle-check: runs-on: ubuntu-latest diff --git a/.github/workflows/push_image.yml b/.github/workflows/push_image.yml index 1efa84648..4e63f9db0 100644 --- a/.github/workflows/push_image.yml +++ b/.github/workflows/push_image.yml @@ -75,7 +75,10 @@ jobs: run: make test - name: Report coverage uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: files: ./cover.out flags: unittests - fail_ci_if_error: false + fail_ci_if_error: true + verbose: true