Should I use GitHub OAuth or a GitHub App?

75
November 12, 2019, at 7:30 PM

I'm building a nodejs command-line tool which takes the output from a client and pushes it to a GitHub repo and raise a PR.

The purpose behind it is that our users need to produce something that our team can process as code but our users are not coders, therefore they only need to complete a form and the code will be created for them. When they submit the form it will give them a preview of the code (on the off chance they know what they are doing but mostly to make them feel like coders) but in the background, it will push that code to a repo and raise a PR so we as developers get alerted to the new code. GitHub is being used for version-control and diffing abilities and is a specific request from the powers that be.

The users will not have GitHub accounts and really shouldn't even need to be aware that any GitHub stuff is happening so we don't want them to have to authenticate, instead we'd want the server itself to authenticate with GitHub using a token.

My question is, should it be an oAuth token or a GitHub app token? Apologies if it's a dumb question, not worked with Octokit before.

Answer 1

In my opinion you should choose oAuth token :)

READ ALSO
JOI - how to require at least one field from a set of fields

JOI - how to require at least one field from a set of fields

Lets say I have a list of fields like this:

96
how to get 5 most repeated element in a map?

how to get 5 most repeated element in a map?

i want to write a program that displays for example 5 most repeated word in a textthe words of the text saved in a map that its keys are words and its values are number of repeating that word

97
Python tkinter unintentionally creating two windows

Python tkinter unintentionally creating two windows

I'm trying to build a simple calculator in Python 3 using tkinterThe calculator is split by a ttk notebook to divide functionality into groups, and each notebook frame should (once I get this fixed) be its own class

87