{"id":18251686,"url":"https://github.com/summerwind/gh-app-auth","last_synced_at":"2025-04-04T16:32:33.661Z","repository":{"id":57645641,"uuid":"441462629","full_name":"summerwind/gh-app-auth","owner":"summerwind","description":"Authenticate with the GitHub App and generate the installation token.","archived":false,"fork":false,"pushed_at":"2022-12-27T15:01:32.000Z","size":14,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-06-20T01:53:12.061Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/summerwind.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}},"created_at":"2021-12-24T12:38:45.000Z","updated_at":"2024-01-11T14:36:27.000Z","dependencies_parsed_at":"2023-01-31T04:01:46.311Z","dependency_job_id":null,"html_url":"https://github.com/summerwind/gh-app-auth","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fgh-app-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fgh-app-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fgh-app-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fgh-app-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/summerwind","download_url":"https://codeload.github.com/summerwind/gh-app-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223150765,"owners_count":17095957,"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":[],"created_at":"2024-11-05T09:48:14.347Z","updated_at":"2024-11-05T09:48:18.566Z","avatar_url":"https://github.com/summerwind.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-app-auth\n\nAuthenticate with the GitHub App and generate the installation token.\n\n## Installation\n\n```\n$ go install github.com/summerwind/gh-app-auth@latest\n```\n\n## Usage\n\nThis command will generate and display the installation token based on GitHub App ID, private key and account name.\n\n```\n$ gh-app-auth --app-id 12345 --private-key /path/to/private-key.pem --account summerwind\nghs_01234...\n```\n\nThe flags are used as follows.\n\n```\nUsage of gh-app-auth:\n  -a, --account string       Target account name\n  -i, --app-id int           GitHub App ID\n  -h, --help                 Print usage and exit\n  -f, --private-key string   Path to the private key file of GitHub App\n```\n\n## GitHub Actions\n\nYou can run `gh-app-auth` on GitHub Actions to get a installation token as follows.\n\n```yaml\n- id: gh-app-auth\n  uses: summerwind/gh-app-auth@main\n  with:\n    app-id: 12345\n    private-key: ${{ secrets.GH_APP_AUTH_PRIVATE_KEY }}\n    account: summerwind\n- run: |\n    cat \u003c\u003c EOL \u003e ~/.netrc\n    machine github.com\n    login git\n    password ${{ steps.gh-app-auth.outputs.token }}\n    EOL\n```\n\n## License\n\nMIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsummerwind%2Fgh-app-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsummerwind%2Fgh-app-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsummerwind%2Fgh-app-auth/lists"}