Commit b2ff71a
authored
docs: add require-signed-commits hook and global git hook pattern (#2)
* feat: add require-signed-commits hook
Checks commit.gpgsign=true and user.signingkey is set before allowing
a commit. Blocks unsigned commits in non-interactive shells (e.g. agentic
AI workflows) where signing can silently fall through.
Usage in .pre-commit-config.yaml:
- repo: https://github.com/injectedfusion/pre-commit-hooks
rev: <tag>
hooks:
- id: require-signed-commits
* fix: correct misleading comment and remove unused gpg_format variable
* ci: add PR pipeline with shellcheck and Claude reviewer
* docs: add require-signed-commits hook and global git hook pattern1 parent 8356cf4 commit b2ff71a
1 file changed
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
33 | 74 | | |
34 | 75 | | |
35 | 76 | | |
| |||
0 commit comments