-
Notifications
You must be signed in to change notification settings - Fork 410
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
Document what permissions github token for travis CLI login needs #645
Comments
This confused me at first too. |
Agree that the permissions should be documented. It's horrifying for some 3rd party script to ask me for my GitHub password and encourages bad behavior. The ideal workflow would be something like the Heroku login which will fire up a localhost server, open your browser to whatever ID provider, then do a redirect with the token back to In any event, after some monkeying I made a token with |
I'm not sure if it was available when this ticket was opened, but there's a page outlining the permissions you need that can be found here: https://docs.travis-ci.com/user/github-oauth-scopes In short, and if you're feeling lazy like me, here are the options you need to toggle when setting up a GitHub token to use with the CLI! Travis CI for Private Projects
Travis CI for Open Source Projects
|
Awesome, thanks!
…On Wed, Oct 16, 2019, 12:56 PM Iain Reid ***@***.***> wrote:
I'm not sure if it was available when this ticket was opened, but there's
a page outlining the permissions you need that can be found here: *https://docs.travis-ci.com/user/github-oauth-scopes
<https://docs.travis-ci.com/user/github-oauth-scopes>*
In short, and if you're feeling lazy like me, here are the options you
need to toggle when setting up a GitHub token to use with the CLI!
Travis CI for Private Projects
- user:email (read-only)
- read:org (read-only)
- repo
Travis CI for Open Source Projects
- user:email (read-only)
- read:org (read-only)
- repo_deployment
- repo:status
- write:repo_hook
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#645?email_source=notifications&email_token=AAEYSPVH4OAH6KI2QNOQCPDQO3XMNA5CNFSM4GOUMHG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBMBZDA#issuecomment-542645388>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEYSPW6BZJ2FNEHJTABIKLQO3XMNANCNFSM4GOUMHGQ>
.
|
Does anyone know what the scope should be for open source projects under I know it is mentioned in https://docs.travis-ci.com/user/github-oauth-scopes#travis-ci-for-open-source-and-private-projects:
But it it does not have the same precision as in https://docs.travis-ci.com/user/github-oauth-scopes#legacy-webhooks, as mentioned in #645 (comment) by @iainreid820. |
When creating GitHub personal token to be used with
what permissions does it need? I have noticed that if it works if I give it all the Repo permissions - but a) does it really need all of these? b) does it need any others?
Please update the docs accordingly.
Thank you!
The text was updated successfully, but these errors were encountered: