Skip to content

Keep the required check controls in the branch controls - #477

Merged
puerco merged 1 commit into
mainfrom
required-check-controls
Nov 22, 2026
Merged

puerco merged 1 commit into
mainfrom
required-check-controls

Conversation

@puerco

@puerco puerco commented Nov 22, 2026

Copy link
Copy Markdown
Member

The GitHub backend built the controls of a branch by enabling the controls it observed in a new control set, which only has entries for the fixed list of framework controls. The controls generated from the checks required to merge into a branch (GH_REQUIRED_CHECK_*) have no entry in that list and were silently dropped.

As a result, policies using org_status_check_controls always failed reporting the control as not enabled, even when the required check was correctly configured.

Carry over the active controls which are not part of the framework list into the resulting control set.

Fixes #434

The GitHub backend built the controls of a branch by enabling the
controls it observed in a new control set, which only has entries for
the fixed list of framework controls. The controls generated from the
checks required to merge into a branch (GH_REQUIRED_CHECK_*) have no
entry in that list and were silently dropped.

As a result, policies using org_status_check_controls always failed
reporting the control as not enabled, even when the required check
was correctly configured.

Carry over the active controls which are not part of the framework
list into the resulting control set.

Fixes #434

Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
@puerco
puerco merged commit 686cf00 into main Nov 22, 2026
7 checks passed
@puerco
puerco deleted the required-check-controls branch November 22, 2026 03:38
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.

Backend drops dynamic GH_REQUIRED_CHECK_* controls, breaking ORG_SOURCE_ status-check policies

1 participant