Skip to content

pypi: use trusted publishing for binary wheels #6543

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

Merged
merged 3 commits into from
Jul 14, 2025

Conversation

bjlittle
Copy link
Member

@bjlittle bjlittle commented Jul 1, 2025

🚀 Pull Request

Description

PyPI now supports Trusted Publishing, which is an OIDC-based "tokenless" authentication mechanism for uploading to the index from within a CI/CD workflow.

This "tokenless" flow has significant security benefits over a traditional manually configured API token, and should be preferred wherever supported and possible.

This pull-request also requires PyPI (and Test PyPI) to be configured for Trusted Publishing for the scitools-iris project, which has already been performed.

Reference:

Copy link

codecov bot commented Jul 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.90%. Comparing base (368d8e7) to head (c56b169).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6543   +/-   ##
=======================================
  Coverage   89.90%   89.90%           
=======================================
  Files          90       90           
  Lines       24153    24153           
  Branches     4496     4496           
=======================================
  Hits        21714    21714           
  Misses       1679     1679           
  Partials      760      760           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bjlittle bjlittle force-pushed the pypi-trusted-pub branch 2 times, most recently from 138b8f0 to 2559936 Compare July 7, 2025 08:48
@tkknight tkknight self-requested a review July 14, 2025 13:54
@tkknight tkknight merged commit f9cd7f4 into SciTools:main Jul 14, 2025
22 checks passed
@bjlittle
Copy link
Member Author

@tkknight Awesome, cheers 👍

@trexfeathers
Copy link
Contributor

Since you weren't there to hear it in the Peloton: thanks @tkknight for taking this on 🙏. I had been a bit ambitious offering to find time for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants