Skip to content

Switch to trusted publishing for PyPI#65

Merged
gmr merged 1 commit into
mainfrom
feature/trusted-publishing
Feb 15, 2026
Merged

Switch to trusted publishing for PyPI#65
gmr merged 1 commit into
mainfrom
feature/trusted-publishing

Conversation

@gmr
Copy link
Copy Markdown
Owner

@gmr gmr commented Feb 15, 2026

Summary

  • Switch from API token authentication to OIDC trusted publishing for PyPI deploys
  • Trigger on release published instead of tag push
  • Split into separate build and publish jobs with artifact handoff

Problem

The deploy workflow used a PYPI_PASSWORD secret for authentication, which is being deprecated in favor of trusted publishing.

Solution

  • Add permissions: id-token: write for OIDC
  • Add environment: pypi to the publish job for trusted publisher configuration
  • Separate build (with artifact upload) and publish (with artifact download) jobs
  • Remove password secret reference from gh-action-pypi-publish

🤖 Generated with Claude Code

- Trigger on release published instead of tag push
- Use OIDC trusted publishing (id-token: write) instead of API token
- Split into build and publish jobs with artifact handoff
- Add pypi environment for trusted publisher configuration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 15, 2026

Warning

Rate limit exceeded

@gmr has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 13 minutes and 40 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/trusted-publishing

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gmr gmr merged commit efd9e1b into main Feb 15, 2026
6 checks passed
@gmr gmr deleted the feature/trusted-publishing branch February 15, 2026 18:59
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.

1 participant