Skip to content

Add the signed-landing check and narrow the review bypass - #840

Merged
kiwidream merged 1 commit into
mainfrom
kiwidream/signed-landing
Nov 11, 2026
Merged

kiwidream merged 1 commit into
mainfrom
kiwidream/signed-landing

Conversation

@kiwidream

@kiwidream kiwidream commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

What and why

A pull request is meant to land as one commit that a person signed, but nothing enforced it: GitHub's signature rule also accepts commits GitHub signs itself, such as web edits and "Update branch" merges, and the merge button merges a pull request with any number of commits.

  • .github/workflows/signed-landing.yml reports a signed-landing check that passes only when the pull request is one commit signed by a person with an OpenPGP key of their own, or comes from a branch named sync-…, which merges as it is. It always runs from main's copy of the file, whatever branch the pull request targets, and reads the pull request through the API only. Its result belongs to the commit, so it judges every open pull request the commit heads, drafts aside, and passes only if all of them may land.
  • required-checks.json is a new ruleset with no bypass actors. It requires signed-landing on main.
  • The review ruleset's bypass changes from "always" to "pull requests only".
  • required-checks-version-lines.json requires pull requests and the check on the version lines except the dormant 1.x.x and 0.1.x, so a commit reaches them only through a pull request, which the check judges against that line.
  • docs/releasing.md says to name a synchronization branch sync-….
  • docs/releasing.md says to name a branch that merges one version line into another sync-…, in this repository and with nothing before sync-.

After this merges, an admin applies the ruleset files. Until then GitHub keeps the rules it has, and the README's check reports the difference. Two things have to hold before that, or nothing reports the check and nothing can merge: the workflow is on main, and an Actions policy allows pull_request_target for .github/workflows/signed-landing.yml. GitHub blocks that event in public repositories from 2 December 2026 unless a policy allows it. Qbit-Org has had an organization-wide policy for this file since 11 November 2026.

Every open pull request will show a red signed-landing until a maintainer has squashed and signed it. That is the point: it is the ready-to-land light.

Checks

  • The check's script has 62 unit tests against real GitHub answers, and each of its rules fails a test when removed. Run against real pull requests it passes one commit signed with its committer's own OpenPGP key, and refuses several commits, a commit GitHub signed and an unsigned commit.
  • The workflow declares pull-requests: read and uses no action.

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T19:25:52.337026Z 7b14f4e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@blacksmith-sh

This comment has been minimized.

@qbit-reviewer qbit-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved: a complete review with no bugs found.

No bugs or security points found.

Not posted: 2 leads. Reviews post bugs and security points only; the rest stay in Sixth Man's ledger.

Reviewed by Claude Opus 5.5.

A pull request is meant to land as one commit that a person signed, but
nothing enforced it: GitHub's signature rule also accepts commits GitHub
signs itself, such as web edits and "Update branch" merges, and the
merge button merges a pull request with any number of commits.

- `.github/workflows/signed-landing.yml` reports a `signed-landing`
  check that passes only when the pull request is one commit signed by a
  person, or comes from a branch named `sync-…`, which merges as it is.
  It always runs from `main`'s copy of the file, whatever branch the
  pull request targets, and reads the pull request through the API only.
  Its result belongs to the commit, so it judges every open pull request
  the commit heads, drafts aside, and passes only if all of them may
  land.
- `required-checks.json` is a new ruleset with no bypass actors. It
  requires `signed-landing` on `main`.
- The review ruleset's bypass changes from "always" to "pull requests
  only".
- `required-checks-version-lines.json` requires pull requests and the
  check on the version lines except the dormant `1.x.x` and `0.1.x`, so
  a commit reaches them only through a pull request, which the check
  judges against that line.
- docs/releasing.md says to name a synchronization branch `sync-…`.
- docs/releasing.md says to name a branch that merges one version line
  into another `sync-…`, in this repository and with nothing before
  `sync-`.

The ruleset files describe the state an admin applies after this merges:
the check can be required only once the workflow is on `main` and an
Actions policy allows `pull_request_target` for it.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@kiwidream
kiwidream force-pushed the kiwidream/signed-landing branch from 27c4d1a to 7b14f4e Compare November 11, 2026 19:23

@qbit-reviewer qbit-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved: a complete review with no bugs found.

No bugs or security points found.

Not posted: 3 nits and 2 leads. Reviews post bugs and security points only; the rest stay in Sixth Man's ledger.

Reviewed by Claude Opus 5.5.

@kiwidream
kiwidream merged commit 7f82829 into main Nov 11, 2026
41 checks passed
kiwidream added a commit that referenced this pull request Nov 13, 2026
Since 3.x.x last took main at v3.1.1 (6046726), main gained the later
revisions of the ruleset files, the signed-landing workflow and its two
required-check rulesets (#837, #840, #855).

.github/rulesets/README.md conflicted because both branches added it.
3.x.x's copy was main's first revision (aed3bd6) unchanged, so main's
current text is taken.

Two edits are not from main:

- docs/releasing.md: a synchronization lands with the merge button. The
  version lines take changes only through a pull request that passes
  signed-landing, so the fast-forward push this guide described is
  refused.
- docs/ci-same-tree-skip.md: renamed branches, as a limit of the skip
  (the note promised on #839).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
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.

1 participant