-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change token for github bridge? #995
Comments
@yarikoptic I'm using version v0.8.0 so I'm not sure if it's gonna help 0.7.1
you can then do a and @MichaelMure I still think that finding 'documentation' insides the issues is a bad idea. It should be in the manpage at least imho Thank you for the great work |
Doc improvement is very very much welcome :-) |
indeed I had no output on my version. So I upgraded git-bug, tried it, was alerted to migrate, did migration
but then got some odd error:
not clear which path it talks about, probably not related really to |
Not sure what's happening, but you can try to delete |
eh, moved all previous 144MB aside and rerunning... it was hanging for awhile on
after 20 minutes it was done but provided no remedy --
|
Did you do what @guilbep suggested? #995 (comment) |
We need to track why it's so slow. |
may be I am missing specific aspect, but that is exactly what I was trying to do - to get the "identity" of the auth by running |
may be a sheer number of issues ( |
Yes but you are rebuilding from local data. Did you notice it it stays long at 100%? |
yes, IIRC it was staying awhile after relatively quickly reaching 100%. I still have a tarball of not upgraded repository. I do not think it has any secrets in it. If you want, I can give it to you (100MB .tar.gz) to benchmark if so desired (may be my BTRFS file system got busy/slow at that point? unlikely though). |
@yarikoptic #1011 should get you a faster cache rebuild. I'd be curious to see how it perform for you. |
now that it is updated, my "priority" is the original issue/question -- how to change the token? |
ping -- any ideas on how to change the token? |
probably nevermind, I worked around:
|
Reopened because I think this is a valid user story - see #995 (comment) for a work-around. |
@smoyer64 @yarikoptic as I said above the following worked for me (in git-bug version 0.8.0) to update/change my token: git bug bridge auth # to list the token
f1666cc github token ghp_IWONTTELLYOU login:MYUSERNAME
By the way. Maybe the problem is from somewhere else. I noticed that only Tokens (classic) are working and not Fined grained tokens. |
Nobody has cared to implement support for those new token. A good first step would be to know what changes need to happen: is it just a different validation regex? Do we need to do request differently? |
I tried find the piece of code responsible for this. But I could not find It where should I look ? https://github.com/MichaelMure/git-bug/blob/master/bridge/core/auth/credential_test.go ? |
I believe everything is in https://github.com/MichaelMure/git-bug/blob/master/bridge/github/config.go. Notably, you have the regex to validate a manually entered token: https://github.com/MichaelMure/git-bug/blob/master/bridge/github/config.go#L367 ... and the process to generate a new token: git-bug/bridge/github/config.go Lines 183 to 194 in 1ae31b3
|
I had used git-bug over a year ago and have already configured bridge. Running it now results in
since I failed to find how to change the token, I found in that strace that auth was saved into
/home/yoh/.config/git-bug/keyring/auth-0c111SENSORED
which I moved aside in hope thatgit bug
would ask me for a token to store -- but nope:So I decided to ask on how could I provide a new/replacement token?
The text was updated successfully, but these errors were encountered: