-
Notifications
You must be signed in to change notification settings - Fork 1k
Cannot create scoped token to upload organisation package, but newly personal general token works. #13840
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
Comments
I can confirm that projects that are in an organization are not being included in the list of scopes when creating a token at https://pypi.org/manage/account/token/, this seems to be a bug.
Are you able to share what the response was here? |
The list of projects comes from here: warehouse/warehouse/manage/views/__init__.py Lines 842 to 844 in cec621a
|
There is already a 401, but I was astonished seeing html send to twine. Twine 4.0.2 |
Ah, I thought you meant there was HTML in the error message. This is expected, this is how errors are communicated to twine, and you shouldn't see this unless you have verbosity turned on: https://github.com/pypa/twine/blob/0bb428c410b8df64c04dc881ac1db37d932f3066/twine/commands/upload.py#L149-L151 |
Ok, fair. |
Confirming that this is a bug. Plan is for a two stage fix:
|
resolves #13840 (in the ugliest way possible)
resolves #13840 (in the ugliest way possible)
We also just ran into this in our organization. Could this be addressed? As a workaround, we had to add individual people back to the organization-owned project as "external collaborators". |
Question 1)
https://pypi.org/manage/org/token/
? Or is a personal token used to upload and IPython scope should be present ?<pickachu face>
Question 2)
Also uploading to https://upload.pypi.org/legacy/ returned HTML though it's an API endpoint, it maybe return something machine/terminal readable ?
The text was updated successfully, but these errors were encountered: