{"id":15404520,"url":"https://github.com/k1low/gh-do","last_synced_at":"2025-04-16T21:18:44.207Z","repository":{"id":165449907,"uuid":"640798989","full_name":"k1LoW/gh-do","owner":"k1LoW","description":":octocat: gh-do is a tool to do anything using GitHub credentials","archived":false,"fork":false,"pushed_at":"2025-03-22T02:11:04.000Z","size":100,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T05:41:34.273Z","etag":null,"topics":["credentials","environment-variables","gh-extension","github"],"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/k1LoW.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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},"funding":{"github":"k1LoW","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-05-15T06:44:25.000Z","updated_at":"2025-03-22T02:10:44.000Z","dependencies_parsed_at":"2023-10-11T09:12:50.942Z","dependency_job_id":"ac740587-3d28-4230-827d-94a73d8e8922","html_url":"https://github.com/k1LoW/gh-do","commit_stats":{"total_commits":72,"total_committers":4,"mean_commits":18.0,"dds":0.4444444444444444,"last_synced_commit":"e13a3523086af8a3d12bc9451264912ff4db047e"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fgh-do","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fgh-do/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fgh-do/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fgh-do/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k1LoW","download_url":"https://codeload.github.com/k1LoW/gh-do/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249277952,"owners_count":21242642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["credentials","environment-variables","gh-extension","github"],"created_at":"2024-10-01T16:13:28.965Z","updated_at":"2025-04-16T21:18:44.176Z","avatar_url":"https://github.com/k1LoW.png","language":"Go","funding_links":["https://github.com/sponsors/k1LoW"],"categories":[],"sub_categories":[],"readme":"# gh-do\n\n:octocat: `gh-do` (or `gh do`) is a tool to do anything using GitHub credentials.\n\nKey features of `gh-do` are:\n\n- **Use only credentials stored in secure storage by default**\n- **Set various environment variables for using GitHub API at once**\n\n## As a GitHub CLI extension\n\n### Usage\n\n``` console\n$ gh do\nexport GH_HOST=github.com\nexport GH_TOKEN=gho_xxxxxXXXXXXXXxxxxxxxXXXXXXXXXxxXXxxx\nexport GH_ENTERPRISE_TOKEN=\nexport GITHUB_ENTERPRISE_TOKEN=\nexport GITHUB_TOKEN=gho_xxxxxXXXXXXXXxxxxxxxXXXXXXXXXxxXXxxx\nexport GITHUB_API_URL=https://api.github.com\nexport GITHUB_GRAPHQL_URL=https://api.github.com/graphql\n$ gh do -- any-command # Set environment variables for github.com\n```\n\n### Install\n\n``` console\n$ gh extension install k1LoW/gh-do\n```\n\n## As a Standalone CLI\n\n### Usage\n\nRun `gh-do` instead of `gh setup`.\n\n``` console\n$ gh-do --hostname enterprise.internal\nexport GH_HOST=enterprise.internal\nexport GH_TOKEN=gho_yyyyyYYYYYYYYyyyyyyyYYYYYYYYYyyYYyyy\nexport GH_ENTERPRISE_TOKEN=gho_yyyyyYYYYYYYYyyyyyyyYYYYYYYYYyyYYyyy\nexport GITHUB_ENTERPRISE_TOKEN=gho_yyyyyYYYYYYYYyyyyyyyYYYYYYYYYyyYYyyy\nexport GITHUB_TOKEN=gho_yyyyyYYYYYYYYyyyyyyyYYYYYYYYYyyYYyyy\nexport GITHUB_API_URL=https://enterprise.internal/api/v3\nexport GITHUB_GRAPHQL_URL=https://enterprise.internal/api/graphql\n$ gh-do --hostname enterprise.internal -- any-command # Set environment variables for enterprise.internal\n```\n\n### Install\n\n**deb:**\n\n``` console\n$ export GH_DO_VERSION=X.X.X\n$ curl -o gh-do.deb -L https://github.com/k1LoW/gh-do/releases/download/v$GH_DO_VERSION/gh-do_$GH_DO_VERSION-1_amd64.deb\n$ dpkg -i gh-do.deb\n```\n\n**RPM:**\n\n``` console\n$ export GH_DO_VERSION=X.X.X\n$ yum install https://github.com/k1LoW/gh-do/releases/download/v$GH_DO_VERSION/gh-do_$GH_DO_VERSION-1_amd64.rpm\n```\n\n**apk:**\n\n``` console\n$ export GH_DO_VERSION=X.X.X\n$ curl -o gh-do.apk -L https://github.com/k1LoW/gh-do/releases/download/v$GH_DO_VERSION/gh-do_$GH_DO_VERSION-1_amd64.apk\n$ apk add gh-do.apk\n```\n\n**homebrew tap:**\n\n```console\n$ brew install k1LoW/tap/gh-do\n```\n\n**[aqua](https://aquaproj.github.io/):**\n\n```console\n$ aqua g -i k1LoW/gh-do\n```\n\n**manually:**\n\nDownload binary from [releases page](https://github.com/k1LoW/gh-do/releases)\n\n**go install:**\n\n```console\n$ go install github.com/k1LoW/gh-do/cmd/gh-do@latest\n```\n\n**docker:**\n\n```console\n$ docker pull ghcr.io/k1low/gh-do:latest\n```\n\n## Use insecure credentials\n\nIf using credentials (environment variables, config files) that are not stored in secure storage, the `--insecure` option must be given.\n\n``` console\n$ gh do --insecure\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fgh-do","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk1low%2Fgh-do","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fgh-do/lists"}