Commit 12b3310
fix(ci): skip merge commits in Verify Commit Signatures (lockdown)
The verify-signatures job in lockdown.yml iterates
`git log origin/main..HEAD` to enforce signatures on every commit.
On a pull_request event, GitHub checks out `refs/pull/N/merge` — a
simulated merge commit that is auto-generated and not GPG-signed —
which the loop then flagged as an unsigned human commit.
Surfaced on PR #89, where my (signed) ureq migration commit passed
verification but the auto-merge commit `63b97bc…` triggered:
ERROR: Unsigned commit detected: 63b97bc…
All human commits MUST be GPG or SSH signed.
Adding `--no-merges` to both `git log` invocations restricts the
check to real human commits only. The auto-merge commit's parents
(both real commits) are still checked.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3a36f51 commit 12b3310
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
| |||
0 commit comments