{"id":50413794,"url":"https://github.com/mojotx/import_github_gpg_key","last_synced_at":"2026-05-31T05:02:25.249Z","repository":{"id":234068381,"uuid":"610881924","full_name":"mojotx/import_github_gpg_key","owner":"mojotx","description":"Script to import GPG Public Keys for validating signed commits on GitHub","archived":false,"fork":false,"pushed_at":"2023-03-07T17:28:27.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-30T17:56:25.541Z","etag":null,"topics":["bash","curl","github","gnupg","gpg","jq","signed-commits"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mojotx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-03-07T17:08:24.000Z","updated_at":"2023-03-07T17:10:53.000Z","dependencies_parsed_at":"2024-04-18T04:12:24.829Z","dependency_job_id":"eb356154-8228-4af2-88af-dbae3517e3e1","html_url":"https://github.com/mojotx/import_github_gpg_key","commit_stats":null,"previous_names":["mojotx/import_github_gpg_key"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mojotx/import_github_gpg_key","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojotx%2Fimport_github_gpg_key","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojotx%2Fimport_github_gpg_key/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojotx%2Fimport_github_gpg_key/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojotx%2Fimport_github_gpg_key/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mojotx","download_url":"https://codeload.github.com/mojotx/import_github_gpg_key/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojotx%2Fimport_github_gpg_key/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33719601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","curl","github","gnupg","gpg","jq","signed-commits"],"created_at":"2026-05-31T05:02:22.406Z","updated_at":"2026-05-31T05:02:25.234Z","avatar_url":"https://github.com/mojotx.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Import GitHub GPG Key\n\n## Description\n\nThis shell script queries the GitHub REST API and retrieves the GPG keys for a specified user, so that you can\nvalidate their GPG-signed commits.\n\n## Requirements\n\nThe shell script is written for Bash, and should run without modification on Linux, macOS, Microsoft\nWindows Subsystem for Linux, and any other UNIX-like operating system that supports the following\nexecutable commands:\n\n- [curl](https://curl.se/)\n- [jq](https://stedolan.github.io/jq/)\n- [gnupg](https://gnupg.org/)\n\n## Usage\n\nYou will need to create a GitHub token for authenticating with the GitHub\nREST API. You can easily do that by going to [https://github.com/settings/tokens](https://github.com/settings/tokens).\nNote that there is no need to specify any special permissions for this token; it's just used for the query.\n\nPass the generated token to the script as an environment variable, `$GITHUB_TOKEN`:\n\n### Method One\n\nYou can set the environment variable in your shell, like this, before calling the script.\n\n```sh\nGITHUB_TOKEN=\"ghp_blahblahblahexampleblahblahblah\"\n./query-user.sh mojotx\n```\n\n### Method Two\n\nYou can also place the environment variable in a text file named `.github_token`,\nand place it in the same directory as the script, or in your home directory.\n\n```sh\necho 'GITHUB_TOKEN=\"ghp_blahblahblahwhateverblahblah\"' \u003e ~/.github_token\n./query-user.sh mojotx\n```\n\n## Source\n\nThe API I use is documented [here](https://docs.github.com/en/rest/users/gpg-keys?apiVersion=2022-11-28#list-gpg-keys-for-a-user).\n\n## License\n\nThis script is licensed under the [MIT License](https://opensource.org/license/mit/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojotx%2Fimport_github_gpg_key","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmojotx%2Fimport_github_gpg_key","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojotx%2Fimport_github_gpg_key/lists"}