Skip to content
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

chore(ci): use OIDC trusted publishing for pypi.org #2559

Merged
merged 2 commits into from
May 3, 2023

Conversation

nejch
Copy link
Member

@nejch nejch commented May 1, 2023

Closes #2554

Tested on test.pypi.org, I've removed the static PYPI_TOKEN already. We can also remove the deploy token member now IMO

@nejch
Copy link
Member Author

nejch commented May 1, 2023

@max-wittig could you take a look? Related settings are in
https://github.com/python-gitlab/python-gitlab/settings/environments, and
https://pypi.org/manage/project/python-gitlab/settings/publishing/.

The script is mostly from https://docs.pypi.org/trusted-publishers/using-a-publisher/#the-manual-way with a small fix, rather than using the whole extra action, so we can keep the current release flow.

@max-wittig max-wittig merged commit 7be09e5 into main May 3, 2023
18 checks passed
@max-wittig max-wittig deleted the feat/oidc-publishing branch May 3, 2023 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace static PyPI credentials with OIDC
2 participants