Skip to content

Add OIDC migration guide and cross-references to PyPI publishing page#5926

Merged
Swimburger merged 2 commits into
mainfrom
devin/1782180113-pypi-oidc-migration-docs
Jun 23, 2026
Merged

Add OIDC migration guide and cross-references to PyPI publishing page#5926
Swimburger merged 2 commits into
mainfrom
devin/1782180113-pypi-oidc-migration-docs

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

The PyPI publishing page had OIDC setup docs but was missing a migration guide for users switching from token-based auth — unlike the npm publishing page which has a comprehensive one. This PR adds parity.

Changes to publishing-to-pypi.mdx:

  • <Warning> banner at page top linking to the new migration section (matches npm page pattern)
  • <llms-only> block with prerequisites and default-to-OIDC guidance for AI agents
  • New "Migrating from token-based to OIDC publishing" section with:
    • Why migrate (security rationale)
    • Path 1: Generator upgrade — update token: OIDC in generators.yml, regenerate SDK (requires generator ≥ 4.38.1)
    • Path 2: Manual CI workflow update — add build job with upload-artifact, replace publish job with pypa/gh-action-pypi-publish@release/v1 + OIDC permissions
    • Verification steps and troubleshooting accordions

Changes to generators-yml-reference.mdx:

  • PyPI token param description now mentions OIDC as an option with a link to the publishing page
  • Example YAML updated from "${PYPI_TOKEN}" to OIDC with a comment showing the token-based alternative

Link to Devin session: https://app.devin.ai/sessions/34f216430ae449e19df3384c13988c2f
Requested by: @Swimburger

- Add Warning banner at top for existing token-based users
- Add llms-only block with prerequisites for AI agents
- Add 'Migrating from token-based to OIDC publishing' section with:
  - Path 1: Generator upgrade (recommended)
  - Path 2: Manual CI workflow update
  - Verification steps and troubleshooting
- Update generators-yml-reference.mdx to mention OIDC for PyPI token field

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration devin-ai-integration Bot requested a review from devalog as a code owner June 23, 2026 02:02
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@github-actions

Copy link
Copy Markdown
Contributor

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@Swimburger Swimburger merged commit 88519c2 into main Jun 23, 2026
4 checks passed
@Swimburger Swimburger deleted the devin/1782180113-pypi-oidc-migration-docs branch June 23, 2026 13:53
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.

2 participants