8

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.

3 Answers 3

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.

Sign up to request clarification or add additional context in comments.

Comments

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

Comments

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!

2 Comments

Welcome to SO. Though the link might answer the question, it is better to add consolidated details out here so that the answers stands out even if the link is broken.
Looks like this link is dead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.