Skip to content

fix: support non-RSA GPG signing keys#313

Merged
andrii-bodnar merged 1 commit into
crowdin:masterfrom
oiahoon:fix/non-rsa-gpg-signing
Jul 15, 2026
Merged

fix: support non-RSA GPG signing keys#313
andrii-bodnar merged 1 commit into
crowdin:masterfrom
oiahoon:fix/non-rsa-gpg-signing

Conversation

@oiahoon

@oiahoon oiahoon commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • read the imported secret key ID from GnuPG machine-readable output
  • support ed25519 and nistp384 keys without changing RSA behavior
  • preserve the existing first-primary-key selection

Closes #295

Verification

  • sh -n entrypoint.sh
  • git diff --check
  • ShellCheck 0.11.0 (no new findings compared with master)
  • generated ed25519, nistp384, and RSA keys; signed and verified a Git commit with each parsed key ID
  • ran setup_commit_signing() with an imported ed25519 key and verified the resulting signed commit

Copilot AI 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.

Pull request overview

This PR fixes commit-signing setup in entrypoint.sh so the action can work with non-RSA GPG secret keys (e.g., ed25519 and nistp384) by deriving the signing key ID from GnuPG’s machine-readable output, addressing issue #295.

Changes:

  • Switch GPG key ID extraction from an RSA-specific regex to parsing gpg --with-colons --list-secret-keys.
  • Keep the “first primary secret key” selection behavior by taking the first sec record.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread entrypoint.sh

@andrii-bodnar andrii-bodnar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@oiahoon thank you!

@andrii-bodnar
andrii-bodnar merged commit 6545830 into crowdin:master Jul 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Commit signing doesn't work with non-RSA keys

3 participants