Report coverage to Coveralls on pull requests using GITHUB_TOKEN - #65
Merged
Conversation
Danger ReportNo issues found. |
Switches from coveralls_reborn (which requires a Coveralls-specific COVERALLS_REPO_TOKEN secret that isn't available to workflow runs triggered by pull requests from forks) to the coverallsapp/github-action, which authenticates with the default GITHUB_TOKEN available on any PR. - Replace coveralls_reborn with simplecov-lcov to generate an lcov report that coverallsapp/github-action can consume. - Add pull_request as a trigger for the Coverage workflow so coverage is reported on PRs, not just on pushes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dblock
force-pushed
the
dblock/coveralls-github-token
branch
from
August 25, 2026 22:27
de7b1d6 to
aabc2eb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Coverage workflow only triggers
on: [push]and usescoveralls_rebornwith aCOVERALLS_REPO_TOKENsecret. This means it never runs on pull requests, and even if it did, PRs from forks don't have access to that secret, so coverage is never reported to Coveralls or shown as a PR check.coveralls_rebornto the officialcoverallsapp/github-action, authenticated with the defaultGITHUB_TOKEN(available on every workflow run, including from fork PRs — no extra secret to configure).coveralls_reborn's tosimplecov-lcov, sincecoverallsapp/github-actionconsumes an lcov report.pull_requestas a trigger so coverage now runs and reports on PRs, not only on pushes tomaster.Verified locally: 70 examples, 0 failures, 100% line coverage (unchanged).