Skip to content

fix(repos): onboard ignores the repo's own required checks #7423

Done

Description

@dan-petty

Problem

devops repos onboard writes the ruleset main from the render of the template of dan-petty/infra (baseline.py), and _with_required_checks (settings_rows.py) adds the required checks of the live ruleset and of the template pull request. It never reads github/repository.yaml of the repository itself. So a repository cannot hold its own required checks in that file: a change of the file shows only as "Kept as the repository holds them", and --plan and --confirm do not add its checks. The header of the rendered file says that devops repos onboard applies it, which is true only for the template render.

Evidence

  • dan-petty/homelab#538 requires K8s, Lint and PR title / Semantic PR title in the ruleset main of its github/repository.yaml. devops repos onboard dan-petty/homelab --plan (v0.224.2) shows 10. Ruleset: pending and ruleset main: required checks none yet, and would show the same with the changed file, because the baseline comes from the template at _commit of .copier-answers.yml.
  • devops gh api refuses an agent a write of a ruleset, so a person writes these checks to the live ruleset by hand (README.md of homelab, "CI and the Actions minutes").

Done when

  • devops repos onboard <repo> --plan names each required check of the github/repository.yaml of the repository on its default branch that the live ruleset lacks, and --confirm adds it. A test fails on the base.
  • Or the template of dan-petty/infra gets a Copier answer for the required checks, and the command reads it.

Alternatives check of 2026-11-27: partly.
Tool: integrations/terraform-provider-github (https://github.com/integrations/terraform-provider-github), MIT, last activity 2026-11-27, maintained.
Reason: Searches found settings-as-code tools: the GitHub provider for OpenTofu can declare ruleset required checks and plan and apply them, but ADR 0035 rejected it owning repository settings, and it never reads github/repository.yaml.

Covers:

  • Declares ruleset required status checks as code
  • A plan shows missing checks, an apply adds them
  • Per-repository state tracks the live ruleset

Lacks:

  • Never reads the repository's own github/repository.yaml
  • Cannot hold the ruleset code_quality rule
  • No integration with onboard plan or confirm output

Activity

  1. added
    type/bug
    source/agent
    status/new
    value/medium
    effort/medium
    scope/repos
    on Nov 27, 2026
  2. dan-petty commented on Nov 27, 2026

    @dan-petty
    OwnerAuthor
    • Related: fix(repos): onboard requires a skipped check name #7318, which asks for a different change. Both touch _with_required_checks in settings_rows.py for the onboard command, but #7318 fixes a skipped check being counted as passed while this candidate adds reading the repo's own github/repository.yaml.
  3. added
    priority/p2-medium
    on Nov 27, 2026
  4. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (7)

    Tools considered:

    Searches run:

    • safe-settings probot repository settings rulesets required checks, results: 5
    • declarative GitHub repository settings YAML ruleset required status checks tool, results: 5
    • Copier template answers read repository own config file update, results: 5
    • github_repository_ruleset terraform provider required_status_checks, results: 5
    • github safe-settings app repository settings as code, results: 5
    • github-community-projects safe-settings rulesets required_status_checks settings.yml, results: 5
    • "safe-settings" github app settings.yml branch protection, results: 5

    Sources:

  5. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 27, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 27, 2026
  7. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-27 18:39 UTC

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

    effort/mediumpriority/p2-mediumscope/repossource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions