From 315880ce97376ba271369c4aeb3e035fa84d6eee Mon Sep 17 00:00:00 2001 From: Arik Hadas Date: Wed, 31 Jan 2024 23:23:07 +0200 Subject: [PATCH] set a token for codecov-action It's recommended now to set a token for uploading the report to codecov.io as per https://github.com/codecov/codecov-action/pull/955 Also set fail_ci_if_error to 'true' as this action should be stable now. Signed-off-by: Arik Hadas --- .github/workflows/pull-request.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index a3bf53327..f426f02f8 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -121,6 +121,7 @@ jobs: - name: Push code coverage to Codecov uses: codecov/codecov-action@v3 with: - files: ./go/src/github.com/${{ github.repository }}/cover.out + file: ./go/src/github.com/${{ github.repository }}/cover.out flags: unittests - fail_ci_if_error: false # see https://github.com/codecov/codecov-action/issues/598 + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }}