Created
July 16, 2020 14:02
-
-
Save tedkulp/4f841cfd703314fd567ea94e7f3c9af3 to your computer and use it in GitHub Desktop.
Import a Github user's GPG into your keyring -- uses jq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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