From 3e196bd2c55785653b9dfa5a98ed2209c0e148e5 Mon Sep 17 00:00:00 2001 From: Jordan Coin Jackson Date: Thu, 2 Jul 2026 10:09:01 -0400 Subject: [PATCH] ci: don't fail main build when coverage-badge gist push fails The "Update coverage badge" step pushes to a gist via GIST_TOKEN. When that token is expired/invalid it returns 401 and fails the whole Test (ubuntu-latest, 1.23) job, turning main CI red even though all tests pass. Mark the cosmetic badge update continue-on-error so a badge auth issue no longer red-fails the build. Note: GIST_TOKEN (a PAT with gist scope) still needs rotating to restore the badge itself. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 386ba0b..c359e9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,6 +63,9 @@ jobs: - name: Update coverage badge if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23' && github.ref == 'refs/heads/main' + # Cosmetic gist badge update; a bad/expired GIST_TOKEN must not red-fail + # the whole main build. Rotate GIST_TOKEN (PAT with gist scope) to restore. + continue-on-error: true uses: schneegans/dynamic-badges-action@v1.7.0 with: auth: ${{ secrets.GIST_TOKEN }}