-
Notifications
You must be signed in to change notification settings - Fork 409
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
Difficult to log in with a GitHub token #708
Comments
Indeed, the message needs to be improved. The scopes for |
With 973dc28 the command now yields: $ bin/travis login --github-token XXXXXXX
token is invalid, or does not have sufficient scope; see https://docs.travis-ci.com/user/github-oauth-scopes/ for more information on scope |
Try it with |
if ever someone else stumbles on this part, the needed scopes are: |
First try:
I eventually found the
--debug
option which told me this might be a permissions issue:I then found https://docs.travis-ci.com/user/github-oauth-scopes#travis-ci-for-open-source-projects which is incorrect for this case (using a token with the required permissions granted does not work, yields the same error). This may be because my projects are on travis-ci.com, but that documentation mentions travis-ci.org.
Finally, using a GitHub token with all scopes enabled works, but this shouldn't be necessary!
Please improve these error messages and document what scopes/permissions are actually needed to make the
travis
CLI tool work...The text was updated successfully, but these errors were encountered: