{"id":23029833,"url":"https://github.com/devopsvanilla/gh-gpg-helper","last_synced_at":"2026-05-19T09:06:21.650Z","repository":{"id":265638028,"uuid":"896359176","full_name":"devopsvanilla/gh-gpg-helper","owner":"devopsvanilla","description":"Automate GitHub GPG key setup and commit signing configuration with a single command - secure your commits effortlessly","archived":false,"fork":false,"pushed_at":"2024-11-30T10:55:01.000Z","size":6991,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-26T04:56:38.984Z","etag":null,"topics":["bash","devops","github-config","shell"],"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/devopsvanilla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-30T06:28:52.000Z","updated_at":"2024-11-30T10:51:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1005a7c-8cab-486f-80c5-da98997e5188","html_url":"https://github.com/devopsvanilla/gh-gpg-helper","commit_stats":null,"previous_names":["devopsvanilla/gh-gpg-helper"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/devopsvanilla/gh-gpg-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopsvanilla%2Fgh-gpg-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopsvanilla%2Fgh-gpg-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopsvanilla%2Fgh-gpg-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopsvanilla%2Fgh-gpg-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devopsvanilla","download_url":"https://codeload.github.com/devopsvanilla/gh-gpg-helper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopsvanilla%2Fgh-gpg-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33209459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:54:09.561Z","status":"ssl_error","status_checked_at":"2026-05-19T07:54:08.508Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","devops","github-config","shell"],"created_at":"2024-12-15T14:17:16.056Z","updated_at":"2026-05-19T09:06:21.645Z","avatar_url":"https://github.com/devopsvanilla.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-gpg-helper\n![Security and Best Practices Scan](https://github.com/devopsvanilla/gh-gpg-helper/workflows/Security%20and%20Best%20Practices%20Scan/badge.svg)\n\n\nA bash script to automate the setup of GPG keys for GitHub commit signing. This script helps you create, configure, and add GPG keys to your GitHub account with minimal manual intervention.\n\n## Features\n\n- Automatic GPG key generation\n- GitHub CLI installation check and automated installation\n- Automatic configuration of git for commit signing\n- Automatic addition of GPG key to GitHub account\n- Optional GPG key backup\n- Cross-platform support (Linux and macOS)\n\n## Requirements\n\n- Bash shell\n- Internet connection\n- One of the following package managers:\n  - apt (Debian/Ubuntu)\n  - dnf (Fedora)\n  - yum (RHEL/CentOS)\n  - brew (macOS)\n- GitHub account\n- Sudo privileges (for installing dependencies)\n\n## How to use\n\n```bash\n# First, download the script\ncurl -O https://raw.githubusercontent.com/devopsvanilla/gh-gpg-helper/refs/heads/main/gh-gpg.sh\n\n# Then run it\nbash gh-gpg.sh\n```\n\n⚠️ Security Notice : Always review scripts before executing them directly from the internet.\n\n## What the Script Does\n*1.* Checks for and installs required dependencies (GPG and GitHub CLI)\n\n*2.* Offers options to:\n\n+ Create a new GPG key\n\n+ Use an existing GPG key\n\n*3.* Configures git for commit signing\n\n*4.* Adds the GPG key to your GitHub account\n\n*5.* Offers to create a backup of your GPG keys\n\n*6.* Sets up everything for signed commits\n\n## After Installation\n\nTo verify the setup, you can:\n```bash\nCheck your GPG keys: gpg --list-secret-keys --keyid-format LONG\n```\n\nVerify git configuration:\n```bash\ngit config --global --list | grep -i gpg\n```\n\n## How to sign commits\n\n### To sign a specific commit\n```bash\ngit commit -S -m \"your commit message\"\n```\n\n### To sign all commits automatically (global setting)\n```bash\ngit config --global commit.gpgsign true\n```\n\n### To sign all commits automatically (repository-specific setting)\n```bash\ngit config commit.gpgsign true\n```\n\n### To verify a signed commit\n```bash\ngit verify-commit \u003ccommit-hash\u003e\n```\n\n### To show signatures in git log\n```bash\ngit log --show-signature\n```\n\n## Troubleshooting\nIf you encounter authentication issues:\n\n1. Ensure you're logged in to GitHub CLI: gh auth login\n\n2. Verify your GPG key is correctly added: gh gpg-key list\n\n3. Confirm your git configuration: git config --global --list\n\n## License\nMIT License\n\nCopyright (c) 2024 Sandro Cicero (aka DevOpsVanilla.guru)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevopsvanilla%2Fgh-gpg-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevopsvanilla%2Fgh-gpg-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevopsvanilla%2Fgh-gpg-helper/lists"}