Repository navigation
Hold the owner's commits to the owner's key (quality kit 3.4.0) - #28
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
jmrplens
force-pushed
the
commit-identity
branch
3 times, most recently
from
November 25, 2026 19:29
a03774e to
295d485
Compare
jmrplens
force-pushed
the
commit-identity
branch
2 times, most recently
from
November 25, 2026 19:50
4960af7 to
b1621a9
Compare
Of the commits a pull request adds, wherever its branch is, and of those a push adds to the default branch, only the owner's are judged: those whose author or committer GitHub knows as the owner, or that hold the owner's address. They have that address, committed and signed with the owner's key, as GitHub reports it. So a merge button, the web editor and somebody who writes the owner's address are refused, and a contributor keeps author, committer, key or none; a bot too. On the owner's own pull request an address GitHub knows no account of is warned about. The owner, the keys, the exempt refs and the start of the rule are one file, hooks/identity.json. What is printed names a login, never an address. The step's token can only read, and no code of a pull request runs beside it.
ecosystem.py land OWNER/NAME#N pushes the head of a pull request to main once it is on top of main, every commit is signed and verified, the owner's are the owner's and everything that ran on it is green, and confirms that GitHub shows it merged. A contributor's lands as it is, with its author, committer and signature; one that is not signed or is behind main is rebased by the owner, keeping the author. An update of Dependabot's is one commit of the owner's. Nothing is squash-merged any more, and no branch of a bot is updated.
Merging, the identity of a commit, how often v3 moves and when it may, the organization rules, and how a contributor's work lands.
jmrplens
force-pushed
the
commit-identity
branch
from
November 25, 2026 21:03
b1621a9 to
5a48384
Compare
The identity check waited for, and failed on, a signature GitHub had not decided on, whoever's it was, so a contributor's commit could turn the job red. Only the owner's is waited for now; a contributor's passes the check, and the landing leaves it instead of making it the owner's. What GitHub does not answer is asked three times. The warning about an unknown address is not given for what the owner committed, whose author is not the owner's to change, and the advice on repairing a commit is printed only where one is refused. What a pull request adds is told from the default branch, whatever its base. The landing judged commits and files by the pull request's number, so a branch pushed back and forth could have another head's read in place of the one pushed. Commits are asked by SHA, the files by git in the clone of the push, for a branch that is taken too, and the checks once more right before the push.
jmrplens
force-pushed
the
commit-identity
branch
from
November 25, 2026 22:40
b6d83e2 to
ea9e461
Compare
The commit check ran in a contributor's fork too, since the consumers call quick.yml on a push to main and on a pull request. There it judged the owner's commits of before the rule, which the fork brought from upstream and nobody there can repair: a fork synced late, or a pull request against a main that is behind, turned red. identity.json now names the organization, and a repository outside it is not judged; a pull request from a fork is still judged where it is opened. The landing's clone named main by its short name, which git reads as a tag of that name first, so a tag "origin/main" could hide what a pull request changes under .github/ and stop every take. The clone has no tags now, and main, the head and the branch it pushes are named whole.
SonarCloud reads CLONE and clone as one name (python:S1845), which failed the gate of the pull request.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Quality kit 3.4.0: the owner's rule of 2026-11-25, as corrected that evening, held by
✅ Check, and the tool and the procedure that go with it. Not to be landed by a merge button; the branch lands by fast forward.The rule is the owner's alone. A commit that says it is the owner's (by author or by committer) has the owner's address and the owner's key. Nobody else is asked for that identity, that committer or that key, in a fork or in a branch here. An earlier state of this pull request judged every commit; that is gone.
What it does
The identity of a commit (
hooks/commit_identity.py,hooks/identity.json). The✍️ Commitsjob, now on a push too, asks GitHub about each commit a change adds:The key compared is the key id GitHub gives. Nothing of a contributor's commit fails the job: an undecided signature is waited for where the commit is the owner's, and only there, and what GitHub does not answer is asked three times. What a pull request adds is told from the default branch, whatever its base. The step has the job's read token and runs the kit's checker (here the base branch's), never the pull request's code. Exempt refs are one list with reasons. Only what a change adds is judged; a push older than
sinceis not. That a commit ofmainis signed by somebody is the ruleset's rule, and the documents say so apart.Landing (
tools/ecosystem.py land OWNER/NAME#N [--merge] [--read SHA],tools/fast_forward.py). The owner's pull request, and a contributor's that is signed, verified, on top ofmainand green, land as they are by a plain push of the head (author, committer and signature kept; GitHub marks it merged). A contributor's that is not signed or is behindmainis rebased onland/pr-Nkeeping the author, and only there are committer and signature the owner's. Dependabot's: the guards as before, then one commit of the owner's. What is judged is what is pushed: commits by their SHA, files by git in the clone of the push (and of aland/pr-N), the checks once more right before it; a signature GitHub has not decided on leaves the pull request. Without--mergeit only says.Docs: "The identity of a commit", "Merging", "How often
v3moves", the organization rules,CONTRIBUTING.md.organizationinhooks/identity.json): a contributor's fork or a copy runs the same workflows over the owner's older commits, which nobody there can repair, so there the job says it judges nothing and passes. A pull request from a fork is judged in the repository it is opened in. Checked with the reviewer's reproduction on the real boards history: askleidos-dev/boardsthe five merge-button commits are refused (exit 1); assomebody/boardspush and pull request both pass with the notice (exit 0).main, the head andland/pr-Nby their whole refs, so a tag namedorigin/mainneither hides a.github/change nor stops a take.To know before it lands
@v3, so the merge settings and the in-flight squash merges come first.kleidos-dev/meter'smainis exempt until its work in flight ends.sinceinhooks/identity.json(2026-11-26T03:00:00Z) is the moment from which a push is judged, set after this release..github/workflows/quick.ymlandreusable-commit-check.ymlchange: read line by line, since a green gate proves nothing there.