Skip to content

Require GPG signed commits #52

@Robbert

Description

@Robbert
  • Enable pre-commit hook?
  • Enable pre-accept hook?
  • Describe how contributors should enable signing of commits with GPG on their Mac
  1. Download GPGTools from https://gpgtools.org to install the gpg command line utility, if you don't have it already.
  2. Open the application GPG Keychain and setup a new private key for the e-mail address you use for commits to Git.
    • Generate a password with 1Password and use it as passphrase for your GPG key.
  3. Export the newly generated keys from GPG Keychain, including the secret key, and store it in 1Password as attachment, along with your passphrase.
  4. Configure git to use your key: git config --global user.signingkey $INSERT_KEY_HERE
  5. Enable GPG signing in git using git config commit.gpgsign true.
  6. Export your public key using these instructions, starting from gpg --list-keys and then using gpg --armor --export $INSERT_KEY_HERE.
  7. Login to github.com and let them know what your public GPG key is, in Settings > SSH and GPG keys > GPG keys.

Related reading: Github: Generating a GPG key

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions