github-issues-import
github-issues-import copied to clipboard
Authenticate using Github Personal Access Token
As a more secure alternative to password. Add 'token' setting, or read from env variable GITHUB_CLI_TOKEN
You still have to type your password with this. Is that intended?
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.
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>
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.
This pull request should be closed. The need is addressed by this comment: https://github.com/IQAndreas/github-issues-import/issues/21#issuecomment-45148987