-
Notifications
You must be signed in to change notification settings - Fork 351
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
Github Gist with 2FA #9
Comments
Interesting. In most cases (other tools) I was able to use my 2FA token as the password. Here I haven't officially tested this as I was setting it up with @choco-bot |
You can do that. However, I would rather want to keep my TOTP token private (like, really private) and use a token I can revoke: "Personal Access Token". |
Personal access token is what I meant - man I got to work on my terminology! :) |
I remember I could never get the ruby gist to work with a Personal Access Token, It is still quite the naïve implementation, |
Looks like @majkinetor has solved some of this for us with AU next. |
Yeah, this is the plugin: https://github.com/majkinetor/au/blob/integrate/AU/Plugins/Gist.ps1. The token is the only way to use it and arbitrary files can be uploaded. |
The gist plugin was added to |
Hi!
I'm using GitHub with 2FA and in the file
appveyor.yml
I could not use this line:If I do, the job at Appveyor just blocks (asking for a 2FA token).
Instead, I used my local machine, installed ruby, got the
gist
gem and logged runninggist login
. There I had to enter username and password. Another query comes up asking for a 2FA token. I enter it using my phone. A valid "Personal Access Token" (see https://github.com/settings/tokens) then is written into a file called~/.gist
.In the
appveyor.yml
I added another line next togist_id
that says something like:Then, I replaced the
- "ruby -e \"require ' ...
line above withThis should work for everybody with 2FA. I'm not sure how to submit this as a pull request since its kind of a special use case for people with 2FA "on" on Github. I'm also not sure how to put this into the
appveyor.yml
file since I'm not too experienced with Appveyor.The text was updated successfully, but these errors were encountered: