44. GitHub repository hardening: policy, private reporting, code scanning, pull requests
Built 2026-08-04. The committable half landed 2026-07-30; calef applied the settings half
the evening of 2026-08-04, and what was applied is recorded in §73 rather than only in a chat.
Private vulnerability reporting is on, and the main ruleset is active with seven required checks,
zero bypass actors, no linear-history rule, and branches required to be up to date before merging.
BUGS: the fifth item is deliberately not done. Signed commits are not required, on purpose,
and the reason is sequencing rather than merit. A required-signature rule applies to every automated
committer and to Dependabot, so turning it on before signing works blocks every merge. That deferral
now has its own home in §78 instead of dying with the section that carried it. Two of the four items'
caveats also moved: undefined-behavior check cannot be a required check because it runs on a
weekly cron and never on a pull request. Five checks that do run on every pull request deliberately
do not block, cpu matrix among them because it is load-sensitive.
The committable half is built 2026-07-30 (DECISIONS §36); the settings half is written down and
waiting on an admin (notes/repo-hardening.md). SECURITY.md states the scope at confinement, with
the distinction that carries the weight: a missing feature on this roadmap is a roadmap item, a
defense that is claimed and does not work is a vulnerability.
Code scanning: checked rather than assumed, and the answer was no. The obvious argument for an advanced (committed-workflow) setup is that it would see more of the tree. The extraction log says otherwise: default setup finds all five cargo workspaces by itself and reports 176 of 176 Rust files scanned. The number worth carrying forward is the other one: 60 of those 176 were extracted with errors. That was against the host target with default features, for a kernel that does not build for the host at all. "Zero alerts" means less than it looks. That belongs next to the claim rather than in a footnote.
Waiting on calef, both in notes/repo-hardening.md with exact steps: enable private vulnerability
reporting (the committed SECURITY.md currently points at a button that does not exist). Then apply
the main ruleset with seven required checks, an empty bypass list, and not linear history. Apply
the ruleset only after this branch merges, because one required check does not exist yet and a
required check that never reports blocks every merge.
In brief. Four items, and they split into files we can commit and settings someone with admin has to
toggle. Files: a SECURITY.md policy and a code-scanning workflow. The policy states what is in
scope (the kernel's confinement boundaries) and what is not (a demonstrator running under QEMU is
not a production system). Settings: private vulnerability reporting, and a ruleset requiring pull
requests into main. Note the plumbing for the last one already exists, since CI runs on
pull_request. What is missing is the branch protection that makes it mandatory. One thing to check
rather than assume: CodeQL's Rust support has been moving through preview, so confirm its current
state before committing to it. If it is not ready, the practical scanners are the clippy gate we
already run, cargo-audit/cargo-deny from milestone 42 (supply chain and fuzzing in CI), and a
SARIF upload from whatever does work
Signed commits: a fifth item, deferred on purpose. notes/repo-hardening.md files it under
Do NOT enable with its reason:
"Nothing here is signed today; turning this on would block every merge until signing is set up.
Worth doing eventually, as its own decision, not as a side effect of this one."
That reasoning is right about sequencing, and this block is the eventual decision's home. Three things it needs, and the second is the one with a real cost:
- A key and a signing method. SSH signing is the cheap path (git supports it, GitHub verifies it, and the key already exists on the machine that pushes); GPG is the older path with more tooling around it.
- Every automated committer signs too, or the rule blocks them. §78 (signed commits: worth doing, and not as a side effect) names the committers the rule reaches. That is the part to check before turning the setting on, because the failure mode is the same one the ruleset note already warns about: a requirement nothing can satisfy blocks every merge.
- A statement of what it buys here. §78 states it. Say that plainly, or it reads as ceremony.
Sequence it after the ruleset lands and after the required checks are green, for exactly the reason the ruleset itself is sequenced after this branch merges.
Why it matters. a public repository with a security thesis should be able to receive a security
report privately, which today it cannot. The pull-request item also changes how this project is
built: work currently lands by merging feature branches into main locally. Requiring PRs would put
every merge behind the same gate rather than trusting the person merging. That is the discipline
that caught the reap flake and the conflict markers only because I happened to run the gates by hand
Follow-on
- Decision.
design/decisions/0078-signed-commits.mdholds the fifth item, deferred here on sequencing grounds. It was raised the day §73 closed so the deferral would not die with the section carrying it, and calef decided on 2026-08-25 not to require signing, with the conditions that would reopen it written down. - Decision.
design/decisions/0073-repository-admin-steps.mdholds the settings half, the ten admin minutes only calef could spend. He applied them the evening of 2026-08-04 and the section records what was applied and what turned out not to apply, rather than only saying "done". - Recorded.
design/roadmap/0044-github-hardening.mdkeeps the code-scanning caveat, which is the number worth carrying rather than the clean one. 60 of 176 Rust files were extracted with errors, against the host target with default features, for a kernel that does not build for the host at all. "Zero alerts" means less than it looks. - Recorded.
notes/repo-hardening.mdrecords whyundefined-behavior checkcannot be a required check: it runs on a weekly cron and never on a pull request, so requiring it would block every merge. Five more checks that do run on every pull request deliberately do not block. - Milestone 78. The
cpu matrixcheck is one of the five that deliberately does not block, and the reason is that it is load-sensitive. Milestone 78 is where that family of assertions was diagnosed and fixed.
Index row
a repository with a security thesis should be able to receive a report privately