From 1abf667543a9ed19f892e4d3de4356284a815b88 Mon Sep 17 00:00:00 2001 From: xuezhao Date: Thu, 25 Apr 2024 15:47:20 +0000 Subject: [PATCH] Use codecov token. Signed-off-by: GitHub --- .github/workflows/go-presubmit.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go-presubmit.yml b/.github/workflows/go-presubmit.yml index ecf84c38..42601851 100644 --- a/.github/workflows/go-presubmit.yml +++ b/.github/workflows/go-presubmit.yml @@ -15,6 +15,7 @@ env: # Common versions GO_VERSION: '1.21' GO_REQUIRED_MIN_VERSION: '' + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} jobs: build: @@ -62,8 +63,9 @@ jobs: - name: unit run: make test - name: report coverage - uses: codecov/codecov-action@v4.2.0 + uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} files: ./cover.out flags: unit name: unit