From 4a6d78380aa2a40af616d63a91a12acbd72c2f1f Mon Sep 17 00:00:00 2001 From: Jingze <52855280+Jing-ze@users.noreply.github.com> Date: Tue, 11 Nov 2025 19:40:29 +0800 Subject: [PATCH] chore: add CODECOV_TOKEN environment secret in CI workflows (#3110) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 澄潭 --- .github/workflows/build-and-test.yaml | 2 ++ .github/workflows/wasm-plugin-unit-test.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index b519c2403..e3dc094b7 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -48,6 +48,8 @@ jobs: GOPROXY="https://proxy.golang.org,direct" make go.test.coverage - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: fail_ci_if_error: false files: ./coverage.xml diff --git a/.github/workflows/wasm-plugin-unit-test.yml b/.github/workflows/wasm-plugin-unit-test.yml index 6514a7387..059e1e081 100644 --- a/.github/workflows/wasm-plugin-unit-test.yml +++ b/.github/workflows/wasm-plugin-unit-test.yml @@ -180,6 +180,8 @@ jobs: - name: Upload coverage to Codecov for ${{ matrix.plugin }} uses: codecov/codecov-action@v4 if: always() + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: file: plugins/wasm-go/extensions/${{ matrix.plugin }}/coverage-${{ matrix.plugin }}.out flags: wasm-go-plugin-${{ matrix.plugin }}