{"id":34226598,"url":"https://github.com/sunggun-yu/gh-app-access-token","last_synced_at":"2026-03-11T07:33:20.630Z","repository":{"id":61839817,"uuid":"555194642","full_name":"sunggun-yu/gh-app-access-token","owner":"sunggun-yu","description":"Simple Cli tool for operating Github App Installation access token","archived":false,"fork":false,"pushed_at":"2026-01-28T12:55:53.000Z","size":80,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-29T05:27:09.058Z","etag":null,"topics":["cli","github-app","github-app-token","github-token","github-tokens-generator"],"latest_commit_sha":null,"homepage":"","language":"Go","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/sunggun-yu.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-10-21T05:39:34.000Z","updated_at":"2025-05-04T17:37:30.000Z","dependencies_parsed_at":"2022-10-22T05:15:12.864Z","dependency_job_id":"f8891497-c5ac-4fec-9838-f558fa41b1ce","html_url":"https://github.com/sunggun-yu/gh-app-access-token","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":"0.36363636363636365","last_synced_commit":"f9e87eb3bb0ed7bdd59d05ec75712ff158ee3321"},"previous_names":["sunggun-yu/gh-app-access-token-cli"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sunggun-yu/gh-app-access-token","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunggun-yu%2Fgh-app-access-token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunggun-yu%2Fgh-app-access-token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunggun-yu%2Fgh-app-access-token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunggun-yu%2Fgh-app-access-token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunggun-yu","download_url":"https://codeload.github.com/sunggun-yu/gh-app-access-token/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunggun-yu%2Fgh-app-access-token/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30374332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"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":["cli","github-app","github-app-token","github-token","github-tokens-generator"],"created_at":"2025-12-16T00:28:22.780Z","updated_at":"2026-03-11T07:33:20.623Z","avatar_url":"https://github.com/sunggun-yu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-app-access-token-cli\n\n![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/sunggun-yu/gh-app-access-token/total)\n[![CodeQL](https://github.com/sunggun-yu/gh-app-access-token/actions/workflows/codeql.yaml/badge.svg)](https://github.com/sunggun-yu/gh-app-access-token/actions/workflows/codeql.yaml)\n\nSimple Cli tool for operating Github App Installation access token:\n\n- create an access token\n- revoke an access token\n\n,with simply wrapping cli functionality on top of \u003chttps://github.com/bradleyfalzon/ghinstallation\u003e and \u003chttps://github.com/google/go-github\u003e\n\n## Installation\n\nbrew:\n\n```bash\nbrew install sunggun-yu/tap/gh-app-access-token\n```\n\ngo install:\n\n```bash\ngo install github.com/sunggun-yu/gh-app-access-token@\u003cversion\u003e\n```\n\ndocker:\n\n```bash\ndocker pull ghcr.io/sunggun-yu/gh-app-access-token:latest\n```\n\nshell script:\n\n```bash\ncurl -sfL https://raw.githubusercontent.com/sunggun-yu/gh-app-access-token/main/install.sh | sh\n```\n\nit place `gh-app-access-token` in `/tmp` directory. please set `INSTALL_PATH` env var to change directory\n\n```bash\nexport INSTALL_PATH=/\u003csome-dir\u003e\ncurl -sfL https://raw.githubusercontent.com/sunggun-yu/gh-app-access-token/main/install.sh | sh\n```\n\nor,\n\n```bash\ncurl -sfL https://raw.githubusercontent.com/sunggun-yu/gh-app-access-token/main/install.sh | INSTALL_PATH=/\u003csome-dir\u003e sh\n```\n\n## Usage\n\n### Generate a Github App access token\n\n```bash\n# generate the Github App access token\ngh-app-access-token generate \\\n  --app-id [app-id] \\\n  --installation-id [installation-id] \\\n  --private-key [private-key-file-path]\n\n# generate the Github App access token with file in HOME\ngh-app-access-token generate \\\n  --app-id [app-id] \\\n  --installation-id [installation-id] \\\n  --private-key $HOME/private-key.pem\n\n# generate the Github App access token with file in HOME\ngh-app-access-token generate \\\n  --app-id [app-id] \\\n  --installation-id [installation-id] \\\n  --private-key ~/private-key.pem\n\n# generate the Github App access token with text in private key file passed into stdin\ncat [private-key-file-path] | gh-app-access-token generate \\\n  --app-id [app-id] \\\n  --installation-id [installation-id] \\\n  --private-key -\n\n# generate the Github App access token with private key text passed into stdin\necho \"private-key-text\" | gh-app-access-token generate \\\n  --app-id [app-id] \\\n  --installation-id [installation-id] \\\n  --private-key -\n```\n\n### Generate a Github App access toekn using docker image\n\n```bash\ndocker run --rm \\\n  -v \u003cyour-github-app-private-key-file-path.pem\u003e:/private-key.pem \\\n  ghcr.io/sunggun-yu/gh-app-access-token:latest \\\n  generate --app-id [app-id] --installation-id [installation-id] -f /private-key.pem\n```\n\nUse environemnt variable: e.g. run it on circleci or github actions\n\n\u003e⚠️ Note\n\u003e\n\u003e base64 encoded private key should be set in the environment variable\n\n```bash\ndocker run --rm --entrypoint=\"/bin/sh\" \\\n  ghcr.io/sunggun-yu/gh-app-access-token:latest \\\n  -c \\\n  \"echo -e $GH_APP_PRIVATE_KEY | base64 -d | \\\n  gh-app-access-token generate \\\n  --app-id $GH_APP_ID \\\n  --installation-id $GH_APP_INSTALLATION_ID \\\n  -f -\"\n```\n\n\u003e⚠️ Note/Warning\n\u003e\n\u003e it keeps waiting(hang) if there is no stdin when you pass `-` for arg/value\n\n### Revoke the Github App access token\n\n```bash\n# revoke token in argument\ngh-app-access-token-cli revoke [access token string]\n\n# revoke the token passed into stdin\ncat [access-token-file] | gh-app-access-token-cli revoke -\n\n# revoke the token passed into stdin\necho \"access-token-value\" | gh-app-access-token-cli revoke -\n```\n\n\u003e⚠️ Note/Warning\n\u003e\n\u003e it keeps waiting(hang) if there is no stdin when you pass `-` for arg/value\n\n### Revoke the Github App access token using docker image\n\n```bash\ndocker run --rm \\\n  ghcr.io/sunggun-yu/gh-app-access-token:latest \\\n  revoke [access token string]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunggun-yu%2Fgh-app-access-token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunggun-yu%2Fgh-app-access-token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunggun-yu%2Fgh-app-access-token/lists"}