-
Notifications
You must be signed in to change notification settings - Fork 610
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 team members (as opposed to admins/owners) don't have sufficient github permissions to add that team on crates.io #1368
Comments
I'd be interested to see the commit which introduced the permissions check to see what the intent there was. I'd find the commit myself, but #1287 has made that pretty time consuming to do |
I'm not quite sure what is going on here. The particular error is because the github api is returning a 401 or 403 response, but I'm not sure which of the multiple api requests involved is causing the problem. The following are all from
The following worked fine for me, and I'm in a similar situation where I am a member of the team but have no additional rights at the team or org level.
My best guess at the moment is that either the mozilla org or mozjpeg team is more locked down and is denying one (or more) of the api requests. |
A few other data points. If I'm logged out of github, the following URLs ask me to sign in: If I'm signed in, the first URL works for me (as I'm a member of a team there), but the mozilla one redirects me and notifies me that "You’re not a member of any teams in this organization." Therefore, it seems that team membership is part of the "organization's private data" and that the mozilla org is blocking access to this information as noted in the hover text in your screenshot. We're only requesting the "read:org" scope from GitHub, so I don't think there is anything we can do on the crates.io end to better support this. I believe this help page describes a way to request that the org admins grant our app access to this data. |
Yeah, I don't think we can change how GitHub works; the best we could do here is change the error message to suggest asking your github org administrator to change the permissions in github (or add the team to the crate for you) |
From what I'm reading here it should be possible to modify owners as a team member, or did I get this wrong? So my setup is the following:
However if I try to add a team to owners of the create, I get "(status 403 Forbidden): team members don't have permission to modify owners". |
I'm a member (but not admin/owner) of github:mozilla:mozjpeg. I'm unable to add the team as a crate owner:
The link doesn't help (I've tried logging out and back again), because I don't have ability to grant crates.io access to the GitHub org private data:
This limits ability to add crates to admins/owners of GitHub teams. I'm not sure if it's a bug or a feature :)
The text was updated successfully, but these errors were encountered: