7

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.

kode master
  • 100
  • 1
  • 15
Ian Wise
  • 706
  • 2
  • 10
  • 31

3 Answers3

3

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.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
2

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

1

I just discovered Git Reports while searching for the same thing.

From the website:

Git Reports is a free service that lets you set up a stable URL for anonymous users to submit bugs and other Issues to your GitHub repositories, without exposing your code, requiring users to log in with GitHub, or using a messy two-repository solution. It works with public and private repositories, and it works with personal and organization repositories.

Hope that helps!

Community
  • 1
  • 1
sirius_li
  • 119
  • 7