actions / actions/upload-code-coverage

Action does not report an error on push events if `gh` is not installed

Open Beginner friendly
#18 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
99
Forks
20
PR merge metrics
No merged PRs in 30d

Description

I have been having some issues getting the action to work, not using the default Github actions image. It was giving me an error that I cannot upload the coverage report to a non-default branch with no PR, even though a PR for the branch exists.

After looking into it, I realized that I hadn't installed gh and this line just fails silently in that case. Could we add an error message or something if gh is not installed or throws an error?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at action.yml line 60 and inspect how the push-event upload path invokes gh. Reproduce the action with gh unavailable or failing, then verify it emits a clear error instead of failing silently.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, github-actions, python
Domain
ci-cd
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.