Skip to content

Commit

Permalink
set a token for codecov-action
Browse files Browse the repository at this point in the history
It's recommended now to set a token for uploading the report to
codecov.io as per codecov/codecov-action#955

Also set fail_ci_if_error to 'true' as this action should be stable now.

Signed-off-by: Arik Hadas <ahadas@redhat.com>
  • Loading branch information
ahadas committed Feb 4, 2024
1 parent 6404fa2 commit 8fc7ec9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pull-request.yml
Expand Up @@ -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 }}

0 comments on commit 8fc7ec9

Please sign in to comment.