Fix Codecov coverage reporting on main branch by alonfaraj · Pull Request #3499 · PyGithub/PyGithub · GitHub
Skip to content

Fix Codecov coverage reporting on main branch#3499

Open
alonfaraj wants to merge 2 commits into
PyGithub:mainfrom
alonfaraj:fix/codecov-token-and-main-branch
Open

Fix Codecov coverage reporting on main branch#3499
alonfaraj wants to merge 2 commits into
PyGithub:mainfrom
alonfaraj:fix/codecov-token-and-main-branch

Conversation

@alonfaraj

Copy link
Copy Markdown

Codecov uploads were silently failing on the main branch with:
"Token required because branch is protected"

Changes

  • Add CODECOV_TOKEN secret to the codecov upload step
  • Upgrade codecov/codecov-action from v5 to v6
  • Update Codecov badge URL from master to main

Notes

Assuming the secret name is CODECOV_TOKEN

@EnricoMi

EnricoMi commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants