Skip to content

Authenticate using Github Personal Access Token  #24

Description

@voiskiTest

Issue by hanxue
Monday Dec 02, 2013 at 22:08 GMT
Originally opened as IQAndreas/github-issues-import#24


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


hanxue included the following code: https://github.com/IQAndreas/github-issues-import/pull/24/commits

Activity

  1. voiskiTest commented on Nov 10, 2017

    @voiskiTest
    OwnerAuthor

    Comment by asmeurer
    Tuesday Jan 21, 2014 at 22:34 GMT


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

  2. voiskiTest commented on Nov 10, 2017

    @voiskiTest
    OwnerAuthor

    Comment by asmeurer
    Wednesday Jan 22, 2014 at 18:53 GMT


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

    [login]
        username = asmeurer@gmail.com
        token = <my token>

    It does work with the GITHUB_CLI_TOKEN variable.

  3. voiskiTest commented on Nov 10, 2017

    @voiskiTest
    OwnerAuthor

    Comment by JensTimmerman
    Tuesday May 13, 2014 at 13:35 GMT


    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>
    
  4. voiskiTest commented on Nov 10, 2017

    @voiskiTest
    OwnerAuthor

    Comment by asmeurer
    Wednesday May 21, 2014 at 16:45 GMT


    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.

  5. voiskiTest commented on Nov 10, 2017

    @voiskiTest
    OwnerAuthor

    Comment by valentinzberea
    Wednesday Oct 29, 2014 at 15:04 GMT


    This pull request should be closed. The need is addressed by this comment: IQAndreas/github-issues-import#21 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions