megachangelog
Fix

Code coverage uploads no longer fail CI for new branches

The GitHub Code Quality upload-code-coverage action now successfully processes coverage uploads on new branches without open pull requests, fixing a previous issue that caused CI failures in this scenario.

Code coverage uploads from the GitHub Code Quality upload-code-coverage action no longer fail CI when you push a branch that doesn’t yet have an open pull request.

Previously, the coverage API required a pull request number for any push to a non-default branch. Since that number only exists once a pull request is open, pushing a new branch before opening a pull request caused the coverage-upload step to fail, even though nothing was actually wrong with your workflow.

Now, when the action runs on a push to a branch without an associated pull request, it skips the upload instead of failing, and explains why in an Actions notice and step summary. This applies to:

  • Pushes to branches that don’t yet have an open pull request.
  • Subsequent pushes to those branches, until a pull request is opened.

Uploads for pushes to your default branch, and for supported pull request events, continue to work exactly as before, so you don’t need to change any existing workflow configuration.

If your workflow uploads coverage only on push events, opening a pull request won’t trigger a new upload by itself—coverage resumes on the next push to that branch. If you want coverage to upload as soon as a pull request opens, add a pull_request trigger to your workflow.

This change is available now on GitHub Enterprise Cloud and GitHub Team, including GitHub Enterprise Cloud with data residency. It isn’t available on GitHub Enterprise Server. Learn more about setting up code coverage for your repository.

The post Code coverage uploads no longer fail CI for new branches appeared first on The GitHub Blog.

code-qualitycicoverageactions

Source: original entry ↗

More from GitHub

Follow GitHub to get its new changes in your feed and email digest.

Improvement

Improved detection for withdrawn Dependabot alerts

Dependabot now provides improved detection for withdrawn alerts that are no longer valid due to advisory or vulnerability changes. This makes it easier to identify and manage alerts that have been removed.

dependabotsecurityalertsdetection
Feature

Search and filter for budgets now available

The Budgets and alerts page in GitHub billing settings now displays all budgets in a single searchable and filterable list, making it easier to manage multiple budgets.

billingbudgetssearchui
Feature

Code scanning AI Scan metrics in security overview

Organization and enterprise administrators can now view metrics showing AI Scan findings generated and resolved in the security overview dashboard, providing visibility into the impact of AI-powered code scanning on pull requests.

code-scanningaisecuritymetricsadmin
See all GitHub changes →