Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github, create issue on repository without requiring a github user account

I have an electron app that has a bug reporting feature. I would like this bug reporter to use the github API to create an issue automatically. Here is the catch, I don't want my users to create and use their own github account to do so.

Is it possible to use the github API to create issues, without requiring an account?

My current workaround is to simply create a 'bug reporting' account, and share that account's access token with the source code. That way, whenever anybody creates an issue it's listed under that user. Seems like a stretch, and I'm wondering if there is a better way to approach this problem.

like image 713
Ian Wise Avatar asked Aug 06 '18 02:08

Ian Wise


People also ask

Do you need an account to use GitHub?

In order to use GitHub, you'll need a GitHub account. You can create a free GitHub account here and start using GitHub right away. With a free account, you'll get access to unlimited public and private repositories. You'll also get bug tracking and project management features.

Can I create a free account in GitHub?

If you don't already have a GitHub account, here's how to create one. Open https://github.com in a web browser, and then select Sign up. Enter your email address. Create a password for your new GitHub account, and Enter a username, too.

Can multiple people own a repository?

Repositories owned by personal accounts have one owner. Ownership permissions can't be shared with another personal account. You can also invite users on GitHub to your repository as collaborators.


2 Answers

My current workaround is to simply create a 'bug reporting' account, and share that account's access token with the source code.

That remains the simplest solution, especially using a PAT (Personal Access Token).
As I explained in "Where to store the personal access token from GitHub", using a PAT allows for an easy revocation if needed, without having to invalidate the account password.

like image 118
VonC Avatar answered Oct 17 '22 03:10

VonC


Github recently announced that in the roadmap for Q4 2020 will be RBAC, which will allow you to more easily control the access your Github users have to a greater granular level, removing the need for many 3rd party apps and giving issue-level access without access to code

More here: https://github.com/github/roadmap/issues/111

like image 2
System24 Tech Avatar answered Oct 17 '22 05:10

System24 Tech