Your team has enabled branch protection on the main branch and required the 'CI / build' status check to pass before merging. A pull request is blocked even though the build job succeeded. After investigation, you discover that the check name reported in the workflow is 'CI / Build' (capital B). What is the most likely cause of the merge block?
- A. The workflow file must be located in the default branch for status checks to register.
- B. Status checks from workflow jobs only count when the workflow is triggered by the pull_request event.
- C. Required status check names are case-sensitive; 'CI / Build' does not match 'CI / build'.✓ Correct
- D. The branch protection rule requires a specific GitHub App to report the check, not Actions.
Explanation
Required status check names in branch protection rules are matched case-sensitively against the check name reported by the workflow (the job name or a step's check name). 'CI / Build' and 'CI / build' are treated as different checks, so the required check never passes. — The workflow file location on the default branch affects whether the workflow runs at all, not the name matching. — pull_request is the typical trigger, but the check name mismatch is the direct cause here. — Nothing in the scenario indicates a GitHub App requirement; the issue is purely the name mismatch.