From 3329b63aa7c0b107dd6d72a74add233fe11485d8 Mon Sep 17 00:00:00 2001 From: Bob Du Date: Sat, 19 Sep 2026 14:09:40 +0800 Subject: [PATCH] ci(codecov): fix stale comparison base and invalid config (#4823) Signed-off-by: Bob Du Co-authored-by: Bo-Yi Wu --- .github/workflows/gin.yml | 4 ++++ codecov.yml | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gin.yml b/.github/workflows/gin.yml index eb463fee..d0f42d09 100644 --- a/.github/workflows/gin.yml +++ b/.github/workflows/gin.yml @@ -30,6 +30,9 @@ jobs: args: --verbose test: needs: lint + permissions: + contents: read + id-token: write strategy: matrix: os: [ubuntu-latest, macos-latest] @@ -80,4 +83,5 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v7 with: + use_oidc: true flags: ${{ matrix.os }},go-${{ matrix.go }},${{ matrix.test-tags }} diff --git a/codecov.yml b/codecov.yml index 47782e50..f78e4295 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,6 +1,7 @@ -coverage: +codecov: require_ci_to_pass: true +coverage: status: project: default: