Skip to content

fix: pass codecov token for uploads to protected main branch - #268

Merged
shenxianpeng merged 1 commit into
mainfrom
bugfix/codecov-upload-token
Aug 12, 2026
Merged

fix: pass codecov token for uploads to protected main branch#268
shenxianpeng merged 1 commit into
mainfrom
bugfix/codecov-upload-token

Conversation

@shenxianpeng

Copy link
Copy Markdown
Member

What

The merged Coverage workflow failed on main:

error: Upload queued for processing failed: {"message":"Token required because branch is protected"}

Tokenless uploads only work for unprotected branches — main is protected, so Codecov rejects the upload. The action was run without a token input, so the upload was unauthenticated.

Fix

Pass token: ${{ secrets.CODECOV_TOKEN }} to codecov/codecov-action (same as the sibling repo commit-check does). The CODECOV_TOKEN secret is already configured in this repo.

Everything else (SHA pins, fail_ci_if_error on push only) is unchanged.

@shenxianpeng
shenxianpeng requested a review from a team as a code owner August 12, 2026 19:45
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@shenxianpeng, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 51 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e9266715-3736-48db-823b-d5d6ee2aff47

📥 Commits

Reviewing files that changed from the base of the PR and between 74c6dcb and 0f0a4bd.

📒 Files selected for processing (1)
  • .github/workflows/coverage.yml

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Commit Check

All 5 checks passed

Show all 5 checks
Commit message
  ✔ PR title (fix: pass codecov token for uploads to protected main branch)
  ✔ Commit 1/1 (fix: pass codecov token for uploads to protected main branch)
Branch
  ✔ Branch (bugfix/codecov-upload-token)
Author
  ✔ Author name (Xianpeng Shen)
  ✔ Author email (xianpeng.shen@gmail.com)

commit-check 2.14.0 · Rules reference

@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@shenxianpeng
shenxianpeng merged commit dc04ee4 into main Aug 12, 2026
19 checks passed
@shenxianpeng
shenxianpeng deleted the bugfix/codecov-upload-token branch August 12, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant