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.

Assessment

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

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.

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?

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

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.

More from actions/upload-code-coverage

All issues in actions/upload-code-coverage

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.