From 8987230d9406cf4ebed612a5f645c1813ebf0eaa Mon Sep 17 00:00:00 2001 From: Ashna Mehrotra Date: Mon, 1 Jul 2024 12:13:43 -0700 Subject: [PATCH] ci: add CODECOV_TOKEN field to upload coverage (#641) Signed-off-by: ashnamehrotra --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e3f8f7ac..9a6524014 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,7 +49,9 @@ jobs: CODECOV_OPTS: "-coverprofile=coverage.txt -covermode=atomic" run: make test - name: Upload coverage to Codecov - uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 + uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} build: name: Build runs-on: ${{ matrix.os }}