Skip to content

Commit 35e4621

Browse files
fix(ci): remove auto-commit of coverage badge
Remove the 'Commit coverage badge to main' step which fails due to branch protection rules requiring verified signatures. The CI now: - ✅ Runs all tests - ✅ Checks coverage threshold (75%) - ✅ Runs lint checks (errcheck) - ✅ Builds successfully - ✅ Generates coverage badge JSON (but doesn't auto-commit) Badge can be updated manually if needed, but auto-commit is blocked by repository rules (PR required, signed commits, mergegate check). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent a3e78ba commit 35e4621

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,8 @@ jobs:
208208
209209
echo "Generated coverage badge: ${COVERAGE}% (${COLOR})"
210210
211-
- name: Commit coverage badge to main
212-
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
213-
run: |
214-
git config --local user.email "github-actions[bot]@users.noreply.github.com"
215-
git config --local user.name "github-actions[bot]"
216-
git add .github/badges/coverage.json
217-
git diff --staged --quiet || git commit -m "chore: update coverage badge [skip ci]"
218-
git push
211+
# Note: Auto-committing badge disabled due to branch protection requiring signed commits
212+
# Badge can be updated manually or via a separate workflow with appropriate permissions
219213

220214
- name: Upload coverage artifacts
221215
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)