Skip to content

fix(ci): accept SSH-signed commits in signature check - #658

Open
noahjoeris wants to merge 1 commit into
bitcoindevkit:masterfrom
noahjoeris:fix/ci-ssh-signed-commits
Open

noahjoeris wants to merge 1 commit into
bitcoindevkit:masterfrom
noahjoeris:fix/ci-ssh-signed-commits

Conversation

@noahjoeris

Copy link
Copy Markdown
Contributor

Description

Without gpg.ssh.allowedSignersFile, git log %G? reports SSH-signed commits as unsigned, so CI rejects them. Set it to /dev/null in the CI check and just check, and update docs to allow SSH signing.

Same as bitcoindevkit/electrum_streaming_client#86.

Before submitting

@noahjoeris noahjoeris self-assigned this Nov 20, 2026
@noahjoeris
noahjoeris requested a review from a team as a code owner November 20, 2026 11:54
@github-project-automation github-project-automation Bot moved this to Triage in BDK Wallet Nov 20, 2026
@noahjoeris noahjoeris moved this from Triage to Needs Review in BDK Wallet Nov 20, 2026
@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.02%. Comparing base (f6f45f4) to head (bfc3e27).

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              
Flag Coverage Δ
rust 82.02% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@caarloshenriq caarloshenriq left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/null

Without 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
noahjoeris force-pushed the fix/ci-ssh-signed-commits branch from 790e6b9 to bfc3e27 Compare November 26, 2026 10:45

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

2 participants