{"id":22180634,"url":"https://github.com/jftuga/gh-token","last_synced_at":"2026-04-28T21:01:47.044Z","repository":{"id":248857521,"uuid":"829981181","full_name":"jftuga/gh-token","owner":"jftuga","description":"Add or delete the \"github.com\" internet password from a MacOS Keychain file","archived":false,"fork":false,"pushed_at":"2024-07-17T11:45:24.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T18:50:43.727Z","etag":null,"topics":["github","github-token","keepass","keepassxc","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/jftuga.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-17T11:25:35.000Z","updated_at":"2024-07-17T11:46:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea04c8e9-81fb-4ba8-984d-ce6b2a16beb6","html_url":"https://github.com/jftuga/gh-token","commit_stats":null,"previous_names":["jftuga/gh-token"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jftuga/gh-token","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fgh-token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fgh-token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fgh-token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fgh-token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jftuga","download_url":"https://codeload.github.com/jftuga/gh-token/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fgh-token/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32399010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"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":["github","github-token","keepass","keepassxc","python"],"created_at":"2024-12-02T09:18:57.970Z","updated_at":"2026-04-28T21:01:47.010Z","avatar_url":"https://github.com/jftuga.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-token\n\n`gh-token` opens a KeePass file that contains GitHub fine-grained tokens and\nthen uses the user-selected token to add or delete the `github.com` internet\npassword from a MacOS Keychain file.\n\nIt provides a `fzf` style menu to assist in selecting the token from the KeePass file.\n\nIf the `github.com` internet password already exists, the `add` operation\nwill overwrite this entry with the newly selected token password.\n\n\n**NOTE:** Decryption of the KeePass file can be very slow, especially if using a `KEY_FILE`.\n\n## Install\n```shell\ngit clone https://github.com/jftuga/gh-token\ncd gh-token\npython -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\npython gh-token.py tokens.kdbx your-github-username add\n```\n\n## Usage\n\n```\nUsage:\ngh-token.py \u003cKeePass file\u003e \u003cGitHub username\u003e [add|rm]\n\nIf you want to use a keychain file, then use:\nKEY_FILE=My-KeePass-KeyFile gh-token.py \u003cKeePass file\u003e \u003cGitHub username\u003e [add|rm]\n```\n\n## Acknowledgements\n\n**Modules used:**\n\n* pykeepass - https://github.com/libkeepass/pykeepass\n* pzp - https://github.com/andreax79/pzp\n\n## Disclaimer Notification\n\nThis program is my own original idea and was completely developed on my own personal time,\nfor my own personal benefit, and on my personally owned equipment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjftuga%2Fgh-token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjftuga%2Fgh-token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjftuga%2Fgh-token/lists"}