github-issues-import icon indicating copy to clipboard operation
github-issues-import copied to clipboard

Allow for using an API key instead of username/password combination

Open IQAndreas opened this issue 10 years ago • 3 comments

Even though the script doesn't do anything "funny" with the user's credentials (which can be clearly seen since the code is open source) it's still not a good idea requiring a password in the script (and it's especially not a good idea to store that password in a plaintext file on your computer!)

I added the option of prompting for a password when the script, but I still would like the capability to use API keys instead.

IQAndreas avatar Nov 17 '13 09:11 IQAndreas

This actually already works; if you create a Personal Access Token here:

authorized applications 2014-06-04 16-44-26 2014-06-04 16-44-48

You can then change config.ini like this:

[login]
username = <GENERATED TOKEN>
password = x-oauth-basic

Just used it and it worked like a charm.

ntalbott avatar Jun 04 '14 20:06 ntalbott

This can also be done programmatically using the API.

asmeurer avatar Oct 29 '14 20:10 asmeurer

Added to README https://github.com/IQAndreas/github-issues-import/pull/75

mikemaccana avatar May 16 '19 17:05 mikemaccana