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

Authenticate using Github Personal Access Token

Open hanxue opened this issue 10 years ago • 5 comments

As a more secure alternative to password. Add 'token' setting, or read from env variable GITHUB_CLI_TOKEN

hanxue avatar Dec 02 '13 22:12 hanxue

You still have to type your password with this. Is that intended?

asmeurer avatar Jan 21 '14 22:01 asmeurer

This doesn't seem to work with config.ini. I setup it up with

[login]
    username = [email protected]
    token = <my token>

It does work with the GITHUB_CLI_TOKEN variable.

asmeurer avatar Jan 22 '14 18:01 asmeurer

It looks like it still needs the password to be defined in the config file, but will not use it if token is set, so this should work:

[login]
    username = <user_name>
    password = whatever
    token = <my token>

JensTimmerman avatar May 13 '14 13:05 JensTimmerman

That doesn't seem to work for me. I get

Using Github CLI token
Using Github CLI token
ERROR: There was a problem during authentication.
Double check that your Github Token or username and password are correct, and that you have permission to read from or write to the specified repositories.

It only works if I set the environment variable in the command line.

asmeurer avatar May 21 '14 16:05 asmeurer

This pull request should be closed. The need is addressed by this comment: https://github.com/IQAndreas/github-issues-import/issues/21#issuecomment-45148987

valentinzberea avatar Oct 29 '14 15:10 valentinzberea