-
Notifications
You must be signed in to change notification settings - Fork 40
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 Access Token Scopes #13
Comments
Sorry for the delay on responding. The goal is certainly to keep the scope as small as possible, we will investigate and get back to you. |
Our expectation was that setting a scope of https://github.com/google/go-github/blob/master/github/git_commits.go#L74 I tested and Reading https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/ it seems
At the very least we need to change the README to specify |
@jimsheldon I can confirm that the We could consider sending the user token from Drone to this extension in the payload. It would have to be opt-in since everyone might not be comfortable with the token leaving the Drone server. It doesn't solve the scope problem (Drone has the same scope) but it would be one less token to manage. |
From our discussions with github support it seems there is no way around this unfortunately. I will close this for now. |
FWIW, the go library seems to have added a way to pass the credential to the extension: drone/drone-go@f9e4fe3 I tested this with a sample extension and the access token seems to be present:
|
are there plans to make use of the token being passed through as mentioned by @tonglil in the comment above? Should this issue be re-opened? |
Hi 👋
Thanks so much for writing and maintaining this awesome plugin!
I wanted to open a quick issue about the access token scopes that are required for this to work, namely it seems that the token actually needs full access to private repos, instead of just access to commit statuses in order to work. Is that something that others have seen?
Thanks!
The text was updated successfully, but these errors were encountered: