{"id":15765552,"url":"https://github.com/posener/githubapp","last_synced_at":"2026-04-29T18:32:19.518Z","repository":{"id":84686936,"uuid":"175275112","full_name":"posener/githubapp","owner":"posener","description":"oauth2 Github app authentication client","archived":false,"fork":false,"pushed_at":"2019-03-14T20:42:32.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-05T12:42:33.244Z","etag":null,"topics":["github","github-api","go","golang","oauth2"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/posener.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-03-12T18:36:47.000Z","updated_at":"2019-07-14T18:09:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d89313f-7380-4d45-bdc7-c8dfda899476","html_url":"https://github.com/posener/githubapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posener%2Fgithubapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posener%2Fgithubapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posener%2Fgithubapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posener%2Fgithubapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posener","download_url":"https://codeload.github.com/posener/githubapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246457974,"owners_count":20780673,"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":["github","github-api","go","golang","oauth2"],"created_at":"2024-10-04T12:42:40.247Z","updated_at":"2026-04-29T18:32:14.497Z","avatar_url":"https://github.com/posener.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# githubapp\n\n[![GoDoc](https://godoc.org/github.com/posener/githubapp?status.svg)](http://godoc.org/github.com/posener/githubapp)\n[![goreadme](https://goreadme.herokuapp.com/badge/posener/githubapp.svg)](https://goreadme.herokuapp.com)\n\nPackage githubapp provides oauth2 Github app authentication client.\n\nAccording to [https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps).\n\nUsage\n\n```go\nfunc main() {\n\tctx := context.Background()\n\tcfg := githubapp.Config{\n\t\tAppID: \"1234\",\n\t\tPrivateKey: []byte(os.Getenv(\"GITHUB_APP_PRIVATE_KEY\"))\n\t}\n\tc := cfg.Client(ctx)\n\t// Use c...\n}\n```\n\nThe created client can be used to create a github API client\nwith the github.com/google/go-github/github library.\nOnce your application will have installation, you would like to\nget application clients.\n\n```go\napp := cfg.NewApp(ctx)\ninstallation, err := app.Installation(ctx, \"\u003cgithub-login\u003e\")\n// Check err and use installation...\n```\n\nThe installation has an authenticated http client and github API client\nready to be used.\n\n## Sub Packages\n\n* [cache](./cache)\n\n\n---\n\nCreated by [goreadme](https://github.com/apps/goreadme)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposener%2Fgithubapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposener%2Fgithubapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposener%2Fgithubapp/lists"}