Repository navigation
fix(ci): accept SSH-signed commits in signature check - #658
Open
noahjoeris wants to merge 1 commit into
Open
noahjoeris wants to merge 1 commit into
noahjoeris wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #658 +/- ##
==========================================
- Coverage 82.04% 82.02% -0.02%
==========================================
Files 25 25
Lines 6310 6310
Branches 308 308
==========================================
- Hits 5177 5176 -1
- Misses 1030 1031 +1
Partials 103 103
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
caarloshenriq
approved these changes
Nov 25, 2026
caarloshenriq
left a comment
There was a problem hiding this comment.
tACK 790e6b9
Tested with a throwaway repo (global git config and GPG keyring isolated) containing an unsigned commit, an SSH signed commit and a GPG signed commit with the key hidden to mimic CI:
| commit | master | PR |
|---|---|---|
| unsigned | N |
N |
| SSH | N |
U |
| GPG, unknown key | E |
E |
Repro script
mkdir keys repo
export GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_NOSYSTEM=1
ssh-keygen -q -t ed25519 -N '' -f keys/id
export GNUPGHOME=$PWD/keys/gnupg && mkdir -m700 $GNUPGHOME
gpg --batch --quick-gen-key --passphrase '' 'T <t@t>' ed25519 sign never
GPGKEY=$(gpg --list-keys --with-colons | awk -F: '/^fpr/{print $10;exit}')
cd repo && git init -q && git config user.name t && git config user.email t@t
SSH=(-c gpg.format=ssh -c user.signingkey=$PWD/../keys/id.pub)
git commit -q --allow-empty -m base
git commit -q --allow-empty -m unsigned
git "${SSH[@]}" commit -q -S --allow-empty -m ssh
git -c user.signingkey=$GPGKEY commit -q -S --allow-empty -m gpg
mv $GNUPGHOME $GNUPGHOME.hidden
git log --format='%s %G?' 2>/dev/null
git -c gpg.ssh.allowedSignersFile=/dev/null log --format='%s %G?' 2>/dev/nullWithout gpg.ssh.allowedSignersFile set, git log %G? reports SSH-signed commits as unsigned (N). Point it at an empty allowed-signers file so SSH signatures are detected (U) without trusting any key. Apply the same to the local warning in just check and document SSH signing.
noahjoeris
force-pushed
the
fix/ci-ssh-signed-commits
branch
from
November 26, 2026 10:45
790e6b9 to
bfc3e27
Compare
This branch has not been deployed
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.
Description
Without
gpg.ssh.allowedSignersFile,git log %G?reports SSH-signed commits as unsigned, so CI rejects them. Set it to/dev/nullin the CI check andjust check, and update docs to allow SSH signing.Same as bitcoindevkit/electrum_streaming_client#86.
Before submitting