How to switch from Deploy Keys token to Apps #24386
-
hi all, I am having some trouble understanding the basic ideas behind Github Apps. let’s talk by example. what I currently do what I’d like to do thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, hi @piramiday! Happy to be of assistance here, but I might not fully grasp your end goal. Currently, you have a deploy key which resides on your machines that you develop on. However you would like to create a GitHub OAuth app, for similar purposes. That is, to manipulate your repositories from a web UI that you’ve crafted, which would utilize not a Deploy Key, but an OAuth key. You also mentioned Actions, which can be used to apply CI logic to your deployment process, but are unique to GitHub applications. I suppose the best starting place would be here: https://docs.github.com/en/developers/apps/building-oauth-apps Though, I’d love some clarification on whether or not I fully understood your concern and your goal. |
Beta Was this translation helpful? Give feedback.
-
I managed to do what I was trying to do. it’s weird, but it works. instead of creating a deploy key, I have created a Github App and I used an installation token to be able to interact with the repo as the bot, not as my username. sorry for the weird question. |
Beta Was this translation helpful? Give feedback.
I managed to do what I was trying to do. it’s weird, but it works.
instead of creating a deploy key, I have created a Github App and I used an installation token to be able to interact with the repo as the bot, not as my username.
in such a way issues and PRs created by the bot are nicely marked as being linked to a bot.
commits are showed as being pushed by the bot even though at present Github is not adding a “bot” label on those (but they might in the future).
sorry for the weird question.
you can safely delete this thread since it’s more confusing than helpful for most people.