Repository navigation
docs: add Signed commits section to CONTRIBUTING #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,3 +73,20 @@ protection requires review and passing checks. | |
| packaging policy, secrets, licence consistency and workflow security. | ||
| . Security issues: follow `+SECURITY.md+` — report privately, never in a | ||
| public issue. | ||
|
|
||
| == Signed commits | ||
|
|
||
| Every commit that reaches the default branch must be signed; a ruleset refuses | ||
| unsigned pushes. Estate policy: | ||
| https://github.com/hyperpolymath/standards/blob/main/docs/SIGNING-POLICY.adoc[SIGNING-POLICY]. | ||
|
|
||
| * **People and interactive agents** sign with an SSH key registered on GitHub | ||
| as a *signing* key (`gpg.format=ssh`, `user.signingkey=<key>.pub`, | ||
|
Comment on lines
+82
to
+84
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: sed -n '45,75p' docs/contributing.adoc
sed -n '74,100p' CONTRIBUTING.adoc
rg -n -i 'docs/contributing|CONTRIBUTING|GPG|SSH|signed commit' README* docs .github CONTRIBUTING.adoc 2>/dev/nullRepository: hyperpolymath/veridical-simulation-core Length of output: 3664 🏁 Script executed: printf '%s\n' '--- docs/contributing.adoc ---'
cat -n docs/contributing.adoc | sed -n '1,70p'
printf '%s\n' '--- CONTRIBUTING.adoc ---'
cat -n CONTRIBUTING.adoc | sed -n '1,105p'
printf '%s\n' '--- relevant references ---'
rg -n -i 'docs/contributing|CONTRIBUTING\.adoc|GPG|SSH|signed commit|signing key' --glob '!target/**' --glob '!build/**' .
printf '%s\n' '--- PR paths and relevant diff ---'
git diff --name-status d8014de97ed0b15035dc1ca6bf5c379f80768f05 ead5f290f6e79438e9bf14824897cdedfbdfe999
git diff --unified=5 d8014de97ed0b15035dc1ca6bf5c379f80768f05 ead5f290f6e79438e9bf14824897cdedfbdfe999 -- CONTRIBUTING.adoc docs/contributing.adocRepository: hyperpolymath/veridical-simulation-core Length of output: 9878 Align
Suggested fix-* GPG signing key configured (estate policy — all commits must be
- signed). See
- link:https://github.com/hyperpolymath/standards/blob/main/docs/secure-coding-training.md[standards/docs/secure-coding-training.md].
+* An SSH signing key registered on GitHub and configured for Git
+ (`gpg.format=ssh`, `user.signingkey=<key>.pub`,
+ `commit.gpgsign=true`). The committer email must be verified on that
+ account. See
+ link:https://github.com/hyperpolymath/standards/blob/main/docs/SIGNING-POLICY.adoc[SIGNING-POLICY].
...
-* All commits must be **GPG-signed** (CI enforces; see
+* All commits must be **signed** (CI enforces; see🤖 Prompt for AI Agents |
||
| `commit.gpgsign=true`). The committer email must be verified on that account. | ||
| * **Apps, bots and workflows** never `git push` local commits. They write | ||
| through the API (`createCommitOnBranch` or the estate `signed-push` action) | ||
| so that GitHub signs each commit. | ||
| * Merge PRs with **squash**. The ruleset checks every commit on the PR branch, | ||
| not just the result, so one unsigned commit blocks the merge. Re-create such a | ||
| branch with signed commits (`git cherry-pick -S`) and open a new PR. | ||
| Rebase-merge replays commits unsigned and is disabled. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Keep this heading within the contribution guide hierarchy.
== Signed commitsplaces this heading at the same level as== Contributing to veridical-simulation-core, while the guide’s sections use===. Change it to=== Signed commitsso it remains a subsection. Asciidoctor uses the number of=characters to set section levels. (docs.asciidoctor.org)🤖 Prompt for AI Agents