Skip to content

Enforce signed commits: pre-push hook, check scripts, and CI workflow - #4

Merged
DaveWoodCom merged 2 commits into
mainfrom
feature/3-enforce-signed-commits
Sep 6, 2026
Merged

DaveWoodCom merged 2 commits into
mainfrom
feature/3-enforce-signed-commits

Conversation

@DaveWoodCom

Copy link
Copy Markdown
Contributor

Summary

  • Copy FlightDirector's pre-push tooling verbatim for cross-repo consistency: .githooks/pre-push, scripts/runChecks.sh, scripts/checks/verifyGitLogs.sh (accepts %G? of G or U), scripts/checks/lint.sh, .yamllint.yaml.
  • Add .github/workflows/ci-global-commits-signed.yaml: fails a pull request if GitHub reports any of its commits as unverified.
  • Add CONTRIBUTING.md with the hook setup (git config core.hooksPath .githooks) and the signing rule.

Test plans

#3 — Enforce signed commits

  1. Check that the ci-global-commits-signed workflow ran on this PR and its all commits verified job passed, listing both commits as verified.
  2. In a clone, run git config core.hooksPath .githooks, then scripts/runChecks.sh.
  3. Make a throwaway commit with git -c commit.gpgsign=false commit --allow-empty -m tmp and run scripts/checks/verifyGitLogs.sh 1; discard the commit afterwards.
  4. After merge, in Settings → Branches for main, require the all commits verified status check.

Expected: step 1 is green; step 2 reports all checks passed; step 3 fails with the commit shown as [N]; after step 4 a PR with an unverified commit cannot be merged.

Closes #3

🤖 Generated with Claude Code

DaveWoodCom and others added 2 commits September 6, 2026 13:12
Copied verbatim from FlightDirector for consistency across repos:
.githooks/pre-push, scripts/runChecks.sh, scripts/checks/lint.sh,
scripts/checks/verifyGitLogs.sh (accepts %G? of G or U), and
.yamllint.yaml.

Adds .github/workflows/verify-signed-commits.yml, which fails a pull
request if GitHub reports any of its commits as unverified, and a
CONTRIBUTING.md describing the hook setup and the signing rule.

Closes #3

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@DaveWoodCom
DaveWoodCom merged commit d2d1314 into main Sep 6, 2026
1 check passed
@DaveWoodCom
DaveWoodCom deleted the feature/3-enforce-signed-commits branch September 6, 2026 17:36
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.

Enforce signed commits: verification script, pre-push hook, and CI check required for merge

1 participant