Repository navigation
Open
Labels
bugConfirmed bugs or reports that are very likely to be bugspriority-3Bugs that affect small number of users and/or relatively cosmetic in nature
Description
The problem
Even though GPG commit signing and tag signing are explicitly configured and enabled in the global .gitconfig file (and working properly via Git CLI), GitHub Desktop does not sign commits or tags created through the application.
Commits and tags created within GitHub Desktop are generated unsigned (without GPG signatures), completely bypassing the commit.gpgSign = true and tag.gpgSign = true directives.
Release version
3.6.10 (x64)
Operating system
Windows 11
Steps to reproduce the behavior
- Configure global Git signing in ~/.gitconfig with:
[user]
signingkey = <KEY_ID>
[commit]
gpgSign = true
[tag]
forceSignAnnotated = true
gpgSign = true
[gpg]
program = C:\\Program Files\\GnuPG\\bin\\gpg.exe
- Verify that running git commit -m "test" from the terminal / command prompt produces a signed commit (git log --show-signature confirms signature).
- Open GitHub Desktop and select a repository.
- Stage changes and make a commit using the GitHub Desktop commit interface.
- Create a tag via GitHub Desktop (or commit history).
- Check the commit/tag signature using
git log --show-signature or git tag -v <tagname>. - Observed result: The commit and tag are created without a signature.
- Expected result: GitHub Desktop should respect the Git configuration and sign commits and tags using the configured GPG key and program, or prompt for the passphrase / pinentry if required.
Log files
No response
Screenshots
Additional context
- .gitconfig excerpt:
[user]
signingkey = <REDACTED>
[commit]
gpgSign = true
[tag]
forceSignAnnotated = true
gpgSign = true
[gpg]
program = C:\\Program Files\\GnuPG\\bin\\gpg.exe
-
CLI behavior: Commits made via Git Bash / PowerShell / Windows Command Prompt trigger the GPG agent / pinentry as expected and are signed successfully.
-
Desktop behavior: GitHub Desktop creates the commit silently without invoking GPG or respecting commit.gpgSign.
Metadata
Metadata
Assignees
Labels
bugConfirmed bugs or reports that are very likely to be bugspriority-3Bugs that affect small number of users and/or relatively cosmetic in nature
Activity
desktop-triage commentedon Nov 6, 2026
This is a Bug report: the author provides version (3.6.10), OS (Windows 11), an explicit
.gitconfigwithcommit.gpgsign/tag.gpgSignenabled, clear reproduction steps, and a concrete expected-vs-actual gap (Git CLI signs commits/tags, GitHub Desktop does not). I suggest labeling itbugandpriority-3, since the impact is scoped to users relying on GPG signing and the CLI remains a usable workaround. No duplicate was found after searchingdesktop/desktopfor GPG/signing-related issues.Initial hypothesis
Desktop's commit creation path (
createCommitinapp/src/lib/git/commit.ts) invokesgit commitwith explicit flags for--amend,--no-verify,--signoff, and--allow-empty, but does not pass any GPG-signing-related argument, so signing is left entirely to whatevercommit.gpgsignGit resolves from config files — this should normally work if the global.gitconfigis read correctly. A more likely explanation is an environment/config-resolution mismatch: Desktop spawns Git with a controlled environment (seeapp/src/lib/git/core.ts, whereTERM, hooks env, and trampoline env are explicitly merged into the process env) rather than the user's full interactive shell environment. IfHOME/USERPROFILEorGPG_TTY/pinentry-related variables differ between Desktop's spawned process and the terminal session the user tested with, Git could resolve a different (or no).gitconfig, orgpg/gpg-agentcould fail to prompt for a passphrase silently inside Desktop's non-interactive child process — consistent with the report that CLI commits trigger the pinentry prompt but Desktop's do not. SinceGPGFailedToSignDatais an already-known Dugite error that Desktop maps to a generic/null message (app/src/lib/git/core.ts, caseDugiteError.GPGFailedToSignData), a signing failure inside Desktop may currently fail silently or produce an unhelpful message rather than surfacing to the user, which would match "GitHub Desktop creates the commit silently without invoking GPG." Confirming this would require checking Desktop's debug logs for a suppressed Git error during the commit, or verifying whethergpg.program's pinentry can actually spawn/attach a TTY from within an Electron-spawned child process on Windows.sharkbit commentedon Nov 18, 2026
This help me, so I will add:
Good luck