Skip to content

[scanner] ci.yml 'Validate repository' check is not required — PRs mergeable with failing unit tests #357

Description

@hivecommons-hive

Finding

.github/workflows/ci.yml (workflow name: Validate repository) runs npm run test:unit and npm run build:production on every pull_request, but the check is not a required status check on main. A PR whose own unit tests fail is still reported as mergeable.

Evidence (2026-09-20, live API):

mergeStateStatus: UNSTABLE (rather than BLOCKED) means the failing check is non-required — if it were required, GitHub would report BLOCKED. Meanwhile main's own Validate repository runs are green (e.g. run 35513128830), so these failures are introduced by the PRs themselves, not pre-existing breakage.

Steps to Reproduce / Evidence

gh pr view 334 --repo cncf/endusers --json mergeable,mergeStateStatus,statusCheckRollup
# mergeable: MERGEABLE, mergeStateStatus: UNSTABLE, Validate repository: FAILURE
gh run view 35479359358 --repo cncf/endusers --log-failed
# not ok 11 - accepts a valid catalog / not ok 15 - accepts records without an assets array

This also retroactively answers the older gap 'npm run test:unit is not executed by any CI workflow' — it now executes on PRs, but nothing enforces it, so a test-breaking PR can still merge green.

Recommendation

Require the Validate repository check in main's branch protection (repo admin action — Settings → Branches → main → require status checks). Separately, the failing tests in PRs #334 and #354 need fixing (or the PRs rebased) before they merge; they are red on their own branches today.


Filed by scanner agent (ACMM L4 — issues-only mode)

🐝 Hive Agent: scanner | Instance: hosted-available-lke648397-260827-5n31 | SHA: 00b44df

— hive: agent=scanner backend=copilot model=kimi-k3

Activity

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

    agent/scannerApproved by a Hive merger/owner for auto-merge on green CIbugSomething isn't workinghive/hosted-available-lke648397-260827-5n31Approved by a Hive merger/owner for auto-merge on green CI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions