Repository navigation
docs(engineering): 记录提交签名的真实判据(unknown_key 与缺 scope 的 404) - #106
Merged
Merged
Conversation
规则集里的 required_signatures 从来没有挡住过合并:allowed_merge_methods 只有 squash,合并提交由 GitHub 自己重签。master 上 187 个提交里有 94 个 unsigned, 就是这条规则的"没有在执行"的证据。 推到分支上的手工提交显示 verified=false / reason=unknown_key,真因不是签名写错, 而是账号登记的是另一把钥匙:/users/existyay/ssh_signing_keys 只有一把 SHA256:W4jPeR9t…(2026-09-23 建,本机没有它的私钥),本机签的是 SHA256:CPYCyTTQ…。 POST /user/ssh_signing_keys 返回 404 很容易被读成"接口不存在",实际是缺 admin:ssh_signing_key —— 判据是 X-Accepted-OAuth-Scopes 与 X-OAuth-Scopes 的差集。 最后一条判据单独写进文档:本地 git verify-commit 通过只说明"本机认这把钥匙", "这个账号认不认"要看 commits 接口的 verification.verified / reason。
existyay
force-pushed
the
docs/commit-signing
branch
from
November 25, 2026 23:54
ecfc825 to
6e66768
Compare
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.
只改文档,三件事写清:
required_signatures为什么一直没挡住合并:allowed_merge_methods只有 squash,合并提交由 GitHub 重签;master 上 94/187 个unsigned历史提交就是证据。verified=false reason=unknown_key的真因:账号登记的是SHA256:W4jPeR9t…(本机无私钥),本机签的是SHA256:CPYCyTTQ…(账号里没有)。POST /user/ssh_signing_keys的 404 表示缺admin:ssh_signing_key,判据是X-Accepted-OAuth-Scopes与X-OAuth-Scopes的差集。同时写清判据:本地
git verify-commit通过只说明本机认这把钥匙,GitHub 是否认可要看 commits 接口的verification.verified/reason。