Skip to content

ci: rename branch-protection caller job id so the required check reports - #23

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/branch-protection-job-id-on-development
Aug 4, 2026
Merged

ci: rename branch-protection caller job id so the required check reports#23
rubenvdlinde merged 1 commit into
developmentfrom
fix/branch-protection-job-id-on-development

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Part of the petstore#9 fix. Companion to #20, which makes the identical change on main.

Why this is needed even with #20

The org rulesets on main and beta require the status context branch-protection / check-branch. GitHub names a reusable-workflow context <caller-job-id> / <called-job-name>, and this caller's job was check, so it reported as check / check-branch — a context nothing requires. The required one was therefore never emitted at all: permanently pending, and every PR mergeable only through the OrganizationAdmin bypass. A dead gate whose absence looks exactly like its success.

development and beta were branched from main before #20 lands, so they carry the old job id. Without this PR, release traffic along development → beta → main would keep reporting under the wrong context even after #20 merges — verified on #22, where the check appears as check / check-branch and branch-protection / check-branch is absent (count 0).

This lands the same fix at the head of that flow.

Fleet consistency

openbuild, pipelinq, decidesk and doriath all name this job branch-protection and carry the warning comment verbatim. petstore inherited check: from the nextcloud-app-template scaffold. docudesk (check:) and larpingapp (protect:) have the same defect and are not fixed here.

Context

petstore had neither a beta nor a development branch, while the shared check-branch policy requires PRs to main to come from beta or hotfix/*. Both branches now exist, and check-branch passes on an ordinary PR — #22 (development → beta) reports check / check-branch: SUCCESS with the job log ✓ Branch check passed: development → beta.

Two independent faults, both needed fixing: the missing branches (no source branch could ever satisfy the policy) and this detached context (the required check never reported). Fixing only the second would have made things stricter without opening a legitimate path.

The org rulesets on main and beta require the status context
`branch-protection / check-branch`. GitHub names a reusable-workflow
context `<caller-job-id> / <called-job-name>`, and this caller's job was
`check`, so it reported as `check / check-branch` — a context nothing
requires. The required one was therefore never emitted at all, leaving it
permanently pending and every PR mergeable only through the org-admin
bypass.

PR #20 makes this change on main. It does not reach development or beta,
which were branched from main before it lands, so release PRs along
development -> beta -> main would keep reporting under the wrong context.
This lands the same fix at the head of that flow.

Fleet-consistent: openbuild, pipelinq, decidesk and doriath all name the
job `branch-protection` and carry this warning verbatim.
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/petstore @ 7c6eba7

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
build
test-unit
check-specs
composer ✅ 100/100
npm ✅ 771/771
PHPUnit
Newman
Playwright

Quality workflow — 2026-08-04 09:43 UTC

Download the full PDF report from the workflow artifacts.

@rubenvdlinde
rubenvdlinde merged commit 6098004 into development Aug 4, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant