From 8465c380966f914b6e4bff1aaf3ef33c44a34ed6 Mon Sep 17 00:00:00 2001 From: Guillermo Gaston Date: Wed, 6 Mar 2024 11:30:05 -0600 Subject: [PATCH] Add token for codecov to fix coverage upload (#7793) Without the token, the new v4 action fails when uploading coverage from the jobs in main. The PR actions don't need it and, in fact, github should not pass the token to PRs coming from a fork. --- .github/workflows/go-coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go-coverage.yml b/.github/workflows/go-coverage.yml index 24f17e24dd0f..9551ccc23cc9 100644 --- a/.github/workflows/go-coverage.yml +++ b/.github/workflows/go-coverage.yml @@ -9,7 +9,6 @@ on: paths-ignore: - 'release/**' - jobs: build: runs-on: ubuntu-latest @@ -26,3 +25,4 @@ jobs: uses: codecov/codecov-action@v4.1.0 with: files: ./coverage.txt + token: ${{ secrets.CODECOV_TOKEN }}