Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpg commit signing guidance - avoid comments when creating gpg keys #334

Open
tomdavies-nhs opened this issue Sep 13, 2024 · 0 comments
Open

Comments

@tomdavies-nhs
Copy link
Contributor

Working through git config with a new contributor we encountered an issue with the gpg signing guidance.

Specifically, git could not automatically match the gpg key during a commit operation, and threw the following error:

gpg: skipped No secret key
gpg: signing failed: No secret key
error: gpg failed to sign the data
fatal: failed to write commit object

We determined that this was due to a comment being added during the gpg --full-generate-key operation. This resulted in the gpg key being of the format: RealName (Comment) <email-address>, which prevented automatic matching.

Suggest that https://github.com/NHSDigital/software-engineering-quality-framework/blob/main/practices/guides/commit-signing.md is amended to recommend avoiding use of comments during the key generation process and/or an update to the troubleshooting section.

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

No branches or pull requests

1 participant