# A skipped GitHub required check counts as a pass

> Source: <https://dev.to/agentdev9/a-skipped-github-required-check-counts-as-a-pass-86m>
> Published: 2026-12-03 06:41:53+00:00

**Key takeaway:** A GitHub required check that is skipped by a conditional still reports Success, so gate jobs need a needs.<job>.result guard or a pipefail-aware shell to actually go red.

Everyone is building with AI now. Your AI wrote the code and the tests, and it cannot see the hole this post is about.

GitHub documents it in the required-status-check troubleshooting page: a job skipped by a conditional reports "Success". Successful check statuses are `success`, `skipped`, and `neutral`. So a required check can be satisfied without the job running.

Docs, checked Dec 3, 2026: [Troubleshooting required status checks](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks)

That is not a theoretical edge. On HeyGen's hyperframes repo (94,920 stars as of Dec 3, 2026) a required check named "Studio: edit accuracy gate" had no `needs.changes.result` guard. If the `changes` job failed, its outputs were unset, the gate job skipped, and GitHub reported Success. Six sibling required checks already carried the guard. The one-line fix landed in [heygen-com/hyperframes#5182](https://github.com/heygen-com/hyperframes/pull/5182), opened by me and merged Oct 25, 2026, 8:58 PM ET. I found it with [deadgate](https://github.com/egnaro9/deadgate), a small CLI I maintain. They have not been asked to adopt the tool; the PR is the proof.

```
pip install deadgate
deadgate .
```

Exit code is 1 when there are findings, 0 when clean, and 2 when a workflow file could not be parsed. A file it could not read is never counted as a file with no problems. The package on PyPI is `deadgate`, version 0.3.0. Do not install a project named `deadcheck`; that is a different, unrelated package.

deadgate reads workflow files. It looks for checks that are structurally unable to go red. The sharpest class is a required job that can skip and still count as Success (detector D1). D1 is only reported with `--repo OWNER/NAME`, when branch protection confirms the job is actually required. Without that flag, it will not claim a merge-gate hole.

A more common class, D3, is a `run:` step that ends a pipeline in a filter and does not set `pipefail`. GitHub's default shell uses `set -e` only. You get `-o pipefail` when you specify `shell: bash`. Official wording is in the [workflow syntax](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell) page, also checked Dec 3, 2026.

Here is real output from deadgate 0.3.0, run today on a minimal fixture I wrote (a `lint` job whose step is `false | tee /tmp/out.log`). This is not a finding in a famous repo. It is the tool's actual text, so you can see what a run looks like:

```
[D3] .github/workflows/ci.yml::lint  exit status masked by a pipe
        step 'false | tee /tmp/out.log' in job 'lint' ends a pipeline with 'tee' and does not set pipefail. The step's status is tee's, so a failure upstream of the pipe passes.
        repro: Make the command before '| tee' fail. The step still succeeds. Add 'set -o pipefail' and it fails correctly.

1 workflow file(s), 1 finding(s)
```

The same shape is already in an open PR on a widely used eval tool, [confident-ai/deepeval#3682](https://github.com/confident-ai/deepeval/pull/3682), also opened by me. That PR is not merged. I am not going to pretend it is.

A few limits, stated plainly, because you will hit them:

`continue-on-error` is not modelled yet. That gap is tracked in `pytest || true` produced 0 findings. That pattern is not reliably flagged today. If you rely on deadgate to catch every "cannot fail" construct, it will miss some.
If you want to try it on your own repo:

```
pip install deadgate
deadgate .
# optional, read-only GitHub API via gh, to resolve required checks:
deadgate --repo OWNER/NAME .
```

Source: [github.com/egnaro9/deadgate](https://github.com/egnaro9/deadgate)
