Skip to content

Instantly share code, notes, and snippets.

@tedkulp
Created July 16, 2020 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tedkulp/4f841cfd703314fd567ea94e7f3c9af3 to your computer and use it in GitHub Desktop.
Save tedkulp/4f841cfd703314fd567ea94e7f3c9af3 to your computer and use it in GitHub Desktop.
Import a Github user's GPG into your keyring -- uses jq
#!/bin/sh
USERNAME=$1
curl https://api.github.com/users/$USERNAME/gpg_keys | jq -r '.[0].raw_key' | gpg --import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment