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.
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With