Skip to content
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

fix list_github_token #766

Merged
merged 2 commits into from
Sep 14, 2020
Merged

fix list_github_token #766

merged 2 commits into from
Sep 14, 2020

Conversation

Tahsin-travis-ci
Copy link
Contributor

@Tahsin-travis-ci Tahsin-travis-ci commented Sep 14, 2020

Currently, with --github-token=x gives "Faraday::UnauthorizedError: the server responded with status 401" error.
I found that travis cli with password always deletes the token. i.e.
GitHub API: DELETE /authorizations/483247674
so, with --list-github-token, we should not remove the github token.
fixes for:

travis login --list-github-token
travis login --github-token=x to login

lib/travis/cli/login.rb Outdated Show resolved Hide resolved
@Tahsin-travis-ci Tahsin-travis-ci merged commit f0355f2 into master Sep 14, 2020
@Tahsin-travis-ci Tahsin-travis-ci deleted the th_fix_list_gihub_token branch September 14, 2020 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants