GitHub has updated its Code Quality upload-code-coverage GitHub Action to prevent continuous integration workflows from failing when developers push new branches. The change addresses an issue where code coverage uploads caused unnecessary build failures on branches that did not yet have an active pull request.
Handling Unlinked Branch Pushes
Prior to this adjustment, GitHub's coverage API required an explicit pull request number whenever code was pushed to any non-default branch. Because that pull request identifier is only generated after an open pull request exists, early pushes to fresh branches caused the upload-code-coverage step to error out despite the underlying workflow functioning correctly.
Under the new behavior, the action automatically detects when a push occurs on a branch lacking an associated pull request. Instead of returning a failure status, the action skips the upload attempt entirely. It logs an explanatory notice within GitHub Actions and adds a note to the step summary. This grace period continues for subsequent pushes until a pull request is officially opened.
Impact on Workflow Configurations
The change requires no configuration updates for standard repositories. Coverage uploads triggered by pushes to default branches, alongside supported pull request events, operate without modification.
However, developer teams should note how event triggers interact with the update. If a workflow relies exclusively on push events, opening a pull request will not automatically generate a coverage upload on its own; measurement resumes on the next push to that branch. Repositories requiring immediate coverage metrics upon opening a pull request must explicitly include a pull_request trigger in their workflow definitions.
Platform Availability
The updated action behavior is active for GitHub Enterprise Cloud and GitHub Team users, including accounts utilizing GitHub Enterprise Cloud with data residency. The change has not been rolled out to GitHub Enterprise Server deployments.
AI-generated editorial illustration; not a documentary photograph.
Source: Code coverage uploads no longer fail CI for new branches

Leave a Reply