---
title: "When a skipped job satisfies a required check | Proofline"
description: "GitHub counts a job skipped by an if: condition as a success, so a required check from that job passes without running anything."
url: https://proofline.sh/learn/skipped-job-satisfies-required-check/
---

[Learning center](/learn/)

# When a skipped job satisfies a required check

GitHub counts a job skipped by an if: condition as a success, so a required check from that job passes without running anything. Require checks only from jobs that always run, and put the decision about whether a test is needed inside a job that can fail.

Code review The Proofline team November 23, 2026 5 min read

## What GitHub records for a skipped job

The rule is stated plainly in the Actions documentation: "A job that is skipped will report its status as 'Success'. It will not prevent a pull request from merging, even if it is a required check." [Using conditions to control job execution](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/control-jobs-with-conditions) The pull request shows "This check was skipped," and the branch rule reads the conclusion. The [status checks reference](https://docs.github.com/en/pull-requests/reference/status-checks#check-statuses-and-conclusions) lists `skipped` among the conclusions, and the troubleshooting guide says "Successful check statuses are `success`, `skipped`, and `neutral`." [Troubleshooting required status checks](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks#required-check-needs-to-succeed-against-the-latest-commit-sha)

There are two common ways a job ends up skipped. Its own `jobs.<job_id>.if` evaluates to false, or a job it lists in `needs` failed. The workflow syntax reference says: "If a job fails or is skipped, all jobs that need it are skipped unless the jobs use a conditional expression that causes the job to continue." [Workflow syntax: needs](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idneeds) The troubleshooting guide's table puts the second case bluntly: "The dependent job is skipped and may not block merging."

This is the opposite of a skipped workflow. A workflow that never starts because of a `paths` filter leaves its check waiting, which blocks merging (see [a required check waiting for status](/learn/required-check-waiting-for-status/)). A workflow that starts and skips a job reports success, which allows it.

## A fictional label-gated test suite

Suppose `acme/checkout` runs a slow end-to-end suite and, to save runner time, only runs it when a pull request carries the `run-e2e` label. The main branch ruleset requires `e2e`, because the team wants the suite to gate merges of checkout changes.

```
name: e2e
on:
  pull_request:
    types: [opened, synchronize, reopened, labeled]

jobs:
  e2e:
    if: contains(github.event.pull_request.labels.*.name, 'run-e2e')
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - run: npm ci
      - run: npm run test:e2e
```

A contributor changes the payment form and forgets the label. The `e2e` job is skipped, its check reports success, the ruleset's `e2e` requirement is met, and a reviewer sees a green merge box. The unit tests did not cover the form submission path, so the regression ships. Nothing in the pull request said the suite had not run, apart from the word "skipped" under a green check that nobody opened.

The same thing happens without any label. If the ruleset requires a downstream `e2e-report` job that `needs: e2e`, and `e2e` fails, the report job is skipped and its required check passes. The `re-actors/alls-green` README describes meeting this while building a single aggregate check: "in case when something fails, the `check` job's result is set to `skipped` and not `failed` as one would expect." Its author adds that "`skipped` is interpreted as `success`" in some contexts, with dangerous side effects ([README, read 2026-11-23](https://github.com/re-actors/alls-green/blob/release/v1/README.md)).

## Move the decision inside a job that can fail

The repair is to require a job that always runs and decides. Keep the expensive job conditional if you like, but make the required check a gate that knows whether the expensive job was supposed to run.

```
name: e2e
on:
  pull_request:
    types: [opened, synchronize, reopened, labeled, unlabeled]

jobs:
  e2e:
    if: contains(github.event.pull_request.labels.*.name, 'run-e2e')
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - run: npm ci
      - run: npm run test:e2e

  e2e-gate:
    if: ${{ always() }}
    needs: e2e
    runs-on: ubuntu-latest
    steps:
      - name: Fail unless the suite passed
        if: ${{ needs.e2e.result != 'success' }}
        run: |
          echo "::error::e2e result was ${{ needs.e2e.result }}; add the run-e2e label to run the suite"
          exit 1
```

Require `e2e-gate`, not `e2e`. The gate uses `always()` so that it runs after a failed or skipped dependency, which is what the troubleshooting guide recommends for "required checks that depend on other jobs." It reads `needs.e2e.result`, whose possible values are `success`, `failure`, `cancelled` and `skipped` ([contexts reference](https://docs.github.com/en/actions/reference/workflows-and-actions/contexts#needs-context)). Here a skip is a failure, because this team wants the suite on every merge. On a pull request without the label, the gate fails with a message that names the missing label, and adding the label triggers a new run. If you use a merge queue, a variant fits better: also trigger on `merge_group`, run the suite there unconditionally, and let the gate accept a skip on `pull_request` but demand `success` in the queue. The label then buys early feedback, and the queue is where the suite gates the merge.

A gate that should tolerate skips, such as one behind a path filter, checks for `failure` and `cancelled` instead. Decide which skips are legitimate and write that down in the gate, where a reviewer can read it.

## What the gate does not catch

A gate is only as good as the condition it checks. If the job's `if:` is wrong, for example a label name with a typo, the gate turns that into a visible failure, which is the point. It does not tell you whether the suite tests the right thing. Step-level skips are a separate case: a step whose `if:` is false does not fail its job, and a step with `continue-on-error` can fail without failing its job ([continue-on-error and required checks](/learn/continue-on-error-required-check/)).

To find existing exposure, list every required check name in your rulesets and branch protection rules, find the job that produces each one, and look for an `if:` on that job or a `needs` on a job that can fail. GitHub can show why a job was skipped in its [job condition expression logs](https://docs.github.com/en/actions/how-tos/monitor-workflows/view-job-condition-logs).

## What it costs

A label-gated suite that blocks merges creates work: authors must remember the label and wait for the suite, and the first failing gate will feel like a false positive to someone who changed only documentation. If that happens often, the requirement belongs on a path-scoped gate that allows skips for paths the suite does not cover, not on every pull request.

## The decision

Never require a check from a job that has an `if:` condition or depends on a job that can fail. Require an `always()` gate instead, and state in that gate which dependency results count as passing. Keep conditional jobs for speed, and let the gate turn an unexpected skip into a failed check with a reason.

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [Fix a required check stuck on "Waiting for status to be reported"](/learn/required-check-waiting-for-status/)
    
    Code review The Proofline team November 23, 2026 5 min read
    
-   ### [Find continue-on-error settings that hide failing required checks](/learn/continue-on-error-required-check/)
    
    Code review The Proofline team November 23, 2026 4 min read
