Skip to content

Additional authentication factor when packages are uploaded via GH Actions #12406

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

Closed
rht opened this issue Oct 22, 2022 · 3 comments
Closed

Additional authentication factor when packages are uploaded via GH Actions #12406

rht opened this issue Oct 22, 2022 · 3 comments
Labels
feature request tokens Issues relating to API tokens

Comments

@rht
Copy link

rht commented Oct 22, 2022

What's the problem this feature will solve?
Some projects automate the release to PyPI by GitHub Actions, e.g.

But this means that these uploads bypass the 2FA requirement.

Describe the solution you'd like

Is it possible for PyPI to detect that the twine upload comes from a GitHub Actions process that is associated from the official GitHub repository of the project, and count this info as an extra authentication factor? I know not all projects host their code on GitHub, and even fewer of them publish from a GitHub Actions workflow, but this does cover a lot of the use cases.

@rht rht added feature request requires triaging maintainers need to do initial inspection of issue labels Oct 22, 2022
@miketheman miketheman added tokens Issues relating to API tokens and removed requires triaging maintainers need to do initial inspection of issue labels Oct 22, 2022
@miketheman
Copy link
Member

This is an ongoing project to add this kind of functionality using OpenID Connect (OIDC) with GitHub.
See https://github.com/pypi/warehouse/projects/4 for more.

cc @woodruffw for visibility

@rht
Copy link
Author

rht commented Oct 22, 2022

I see, thank you! Is there a single meta issue that I can subscribe to, so that I can get notified once the project is completed?

@woodruffw
Copy link
Member

Thanks for the ping @miketheman!

@rht: we don't have a meta-issue, but #10970 is the main feature issue for the work. Following that should give you most of the updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request tokens Issues relating to API tokens
Projects
None yet
Development

No branches or pull requests

3 participants