How would I use gh with a Github app? #5095
-
|
I want to set up a PR bot by using Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
|
I'm not sure what you refer to by a "client secret", but in essence yes, you can use |
Beta Was this translation helpful? Give feedback.
-
|
Here's an example of how to generate a Someone also published a more fancy looking script here in github: https://github.com/Link-/gh-token |
Beta Was this translation helpful? Give feedback.
-
|
Here's a golang tool doing same thing, but can be run without any dependencies https://github.com/vishu42/github-token 8000 |
Beta Was this translation helpful? Give feedback.
-
|
You can find some official examples of how to generate JWT tokens in GitHub Docs: Note that this is not the actual token that you should use to authenticate to GitHub CLI as an app. See About authentication with a GitHub App |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I've been working on a GitHub CLI extension that solves a common pain point: managing Git authentication across multiple organizations. Key features:
Install: Here's the repo: It is written in GO, released under Apache and all kinds of contributions are welcome. It's still early days - there may be bugs and rough edges I haven't discovered yet. Would love your feedback, issues, or PRs! 🙏 |
Beta Was this translation helpful? Give feedback.
I'm not sure what you refer to by a "client secret", but in essence yes, you can use
ghfrom a GitHub App as long as you used the App to generate an authentication token for a user. You can either pass that token togh auth login --with-tokenor you can set it to an environment variable, e.g.export GH_TOKEN="...".