Skip to content

Require Java CI and example gates before merging main #133

Closed

Description

@philipgreat

Current state (2026-09-23)

The repository has an active branch ruleset Protect default branch (ID 21070374). The effective rules on main are deletion protection and non-fast-forward protection. The legacy branch-protection endpoint returns 404, and the effective rules list contains no required status checks. Thus the default branch is protected from deletion/force-push, but a PR can currently be merged while Build and Test is still running unless maintainers enforce the gate manually.

This issue corrects the imprecise description that main has no protection at all. No ruleset mutation is made in this issue.

Acceptance criteria

Evidence

GET /repos/teaql/teaql-java/rulesets returns active ruleset 21070374. GET /repos/teaql/teaql-java/rules/branches/main returns only deletion and non_fast_forward.

Activity

  1. philipgreat commented on Sep 22, 2026

    @philipgreat
    ContributorAuthor

    Preparation evidence while the ordered queue waits at #114: the current #112 head 2c6cf36161dba28e17f4c4415062bd379cab87f2 has three successful GitHub Actions check runs with exact names Build and Test, examples, and postgres-mysql, all from app ID 15368 (github-actions). The existing active ruleset 21070374 still applies to ~DEFAULT_BRANCH, has deletion and non_fast_forward only, and lists no bypass actors. Do not add required checks yet: first merge #112 after #114, observe the check contexts on main/current-head PRs, and then perform the controlled pending/failing PR verification required by this issue.

  2. philipgreat commented on Sep 22, 2026

    @philipgreat
    ContributorAuthor

    Read-only ruleset recheck on 2026-09-23: active ruleset 21070374 still targets ~DEFAULT_BRANCH with deletion and non_fast_forward only; no bypass actors or required_status_checks. Exact current Java check-run names are Build and Test, examples, and postgres-mysql. #112 has merged and current heads #129/#120/#132 demonstrate those names as successful; however #126/#128 are still in long-running legacy OWASP scans, #132 cache is not merged to main, and #131 vulnerability policy/triage is incomplete. Therefore the #133 acceptance condition for bounded, meaningful required checks is not yet met. Do not claim main has required checks or use auto-merge until the cache and security gate are settled; manual current-head gate remains in force.

  3. philipgreat commented on Sep 23, 2026

    @philipgreat
    ContributorAuthor

    2026-09-23 controlled gate evidence (PR #161, head 8ee10dd): updated existing active ruleset 21070374, preserving deletion and non_fast_forward, and adding required GitHub Actions contexts Build and Test, examples, postgres-mysql (integration_id 15368, strict_required_status_checks_policy=false). Effective main rules API confirms all three. With Build and Test + examples IN_PROGRESS and postgres-mysql SUCCESS, PR #161 mergeStateStatus is BLOCKED. No bypass actors configured. Awaiting all three current-head checks to pass before merge.

  4. philipgreat commented on Sep 23, 2026

    @philipgreat
    ContributorAuthor

    Acceptance completed 2026-09-23: controlled PR #161 at head 8ee10dd was BLOCKED while Build and Test/examples were pending and became CLEAN only after Build and Test, examples, and postgres-mysql all succeeded on that head. PR #161 was then merged. Effective main rules API still shows deletion, non_fast_forward, and required_status_checks for those three GitHub Actions contexts (integration_id 15368), with strict_required_status_checks_policy=false and no bypass actors. The merged policy note is docs/security/2026-09-23-main-branch-gates.md. Security scan remains inside Build and Test; observed duration was 5m51s, so it is included without adding a separate mandatory context. This closes the required CI gate; #131 generator draft remains separate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions