Migrate PyPI publishing to OIDC trusted publishers#52
Open
Migrate PyPI publishing to OIDC trusted publishers#52
Conversation
Replace pypi_user/pypi_password secrets with OIDC trusted publisher authentication. Add permissions: id-token: write at workflow level as required by the reusable workflow in BYU-CS-Course-Ops/utils. See: BYU-CS-Course-Ops/utils#7
9 tasks
The push trigger is temporarily removed to prevent failed workflow runs on merge. Re-enable it after: 1. BYU-CS-Course-Ops/utils#7 is merged 2. A trusted publisher is configured on pypi.org for this repo
Member
|
I don't believe this will work because of the Enterprise account (CES) we are under. The OIDC minting url is different and PyPi doesn't support that. I tried on code_recorder_processor and couldn't get it to work. |
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate from
pypi_user/pypi_passwordsecrets to PyPI OIDC trusted publishers, as required by the updatedpoetry_publish.yamlreusable workflow in BYU-CS-Course-Ops/utils#7.Changes
permissions: id-token: writeat workflow level (required for OIDC token issuance)pypi_userandpypi_passwordfrom secrets blockpull_requesttrigger (thepushtrigger already covers merged PRs)Before merging
BYU-CS-Course-Opsbyu_pytest_utilspoetry_publish.yamlAfter merging
PYPI_USERandPYPI_PASSWORDrepository secrets can be removed from GitHub Settings🤖 Generated with Claude Code