Skip to content

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

Merged
max-wittig merged 2 commits into
mainfrom
feat/oidc-publishing
May 3, 2023
Merged

chore(ci): use OIDC trusted publishing for pypi.org#2559
max-wittig merged 2 commits into
mainfrom
feat/oidc-publishing

Conversation

@nejch

@nejch nejch commented May 1, 2023

Copy link
Copy Markdown
Member

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
nejch force-pushed the feat/oidc-publishing branch from 27f8a1c to 5b549c5 Compare May 1, 2023 20:01
Comment thread requirements-test.txt
@nejch

nejch commented May 1, 2023

Copy link
Copy Markdown
Member Author

@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
@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