Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
This repository was archived by the owner on Oct 23, 2026. It is now read-only.

Protect the main branch #6

Open

Description

@kinlane

main has no branch protection, and this repository now serves a published schema identity that other documents reference.

Acceptance criteria

  • Required status checks before merge
  • Linear history required
  • Force-push and deletion disabled
  • Review requirement enabled as soon as there are two maintainers

Sharper here than in the tooling repository. A force-push that changed the bytes at a published $id would break every downstream $ref silently — the exact failure the versioning policy promises will never happen. That promise should be enforced by the platform, not by care.

Activity

  1. added
    task
    on Jul 30, 2026
  2. kinlane commented on Aug 27, 2026

    @kinlane
    ContributorAuthor

    Worked 2026-08-27. Not applied — the settings change needs a hand on it, and there is a conflict worth knowing about before anyone clicks.

    The conflict: roadmap.yml pushes straight to main

    .github/workflows/roadmap.yml runs every six hours, regenerates _data/roadmap.json from labeled issues, and does this:

    git config user.name "github-actions[bot]"
    git add _data/roadmap.json
    git commit -m "Refresh the roadmap from labeled issues"
    git push

    A direct push to main, by a bot, four times a day. Against the acceptance criteria here:

    Criterion Safe to turn on?
    Force-push disabled Yes
    Deletion disabled Yes
    Linear history required Yes — the bot's push is a fast-forward
    Conversation resolution required Yes — only affects pull requests
    Required status checks No — this breaks the roadmap job. A direct push carries no check run for the required contexts, so GitHub rejects it
    Review requirement Not yet, by the issue's own reasoning — one maintainer

    Turn on required status checks today and the roadmap silently stops refreshing. It would not fail loudly; the workflow's git push would just start erroring in a scheduled run nobody watches, and the roadmap page would quietly go stale. That failure mode is uncomfortably close to the one this issue exists to prevent.

    Three ways out, in the order I would consider them

    1. A repository ruleset instead of classic branch protection. Rulesets take a bypass list, so github-actions[bot] can be exempted while everything else is enforced. This is the only option that gets required status checks and keeps the automation, and it is the modern replacement for what this issue describes.
    2. Stop pushing to main. The roadmap job opens a pull request instead of committing. Correct in principle, and it means four bot pull requests a day to merge by hand.
    3. Apply everything except required status checks, and leave that box for later. Cheap, reversible, and it closes the actual hole in this issue — a force-push over the published schema.

    The status-check contexts, when they are wired up, are Jekyll 4 (what we develop on) and GitHub Pages (what actually deploys).

    The security framing, since it is the reason this is not housekeeping

    The schema is served at a permanent $id:

    https://spec.spotlight-rules.com/schema/v1/spectral-ruleset.schema.json
    

    Other people $ref that URL. A force-push that changed the bytes behind it would alter validation for every downstream consumer with no version bump and no signal — the exact failure the versioning policy promises will never happen. Option 3 alone closes that, and it does not need the required-checks decision to be made first.

    This is now written into SECURITY.md in #36, which points back here and calls this a security issue rather than a chore.

    Where things stand

    • Required status checks before merge — blocked on the decision above
    • Linear history required — ready, safe
    • Force-push and deletion disabled — ready, safe, and the one that actually matters
    • Review requirement enabled as soon as there are two maintainers — still one maintainer

    The other half of the posture gap is done: private vulnerability reporting, secret scanning, push protection and Dependabot security updates are all enabled on this repository as of today. See #4.

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

    task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions