Skip to content

ci(release): Migrate to PyPI Trusted Publisher#447

Open
tony wants to merge 3 commits intomasterfrom
trusted-publisher
Open

ci(release): Migrate to PyPI Trusted Publisher#447
tony wants to merge 3 commits intomasterfrom
trusted-publisher

Conversation

@tony
Copy link
Copy Markdown
Owner

@tony tony commented Dec 7, 2025

Summary

  • Migrate PyPI publishing from API token to OIDC-based Trusted Publisher
  • Enable package attestations for supply chain security
  • Fix deprecated skip_existing parameter

Setup Required

Before merging, configure the trusted publisher on PyPI:

  1. Visit: https://pypi.org/manage/project/django-docutils/settings/publishing/
  2. Add publisher with:
    • Owner: tony
    • Repository: django-docutils
    • Workflow: tests.yml

tony added 2 commits December 7, 2025 15:13
why: Improve security by eliminating stored API tokens and enable package attestations
what:
- Add OIDC permissions (id-token, attestations) to release job
- Remove user/password authentication in favor of trusted publishing
- Enable attestations for supply chain security
- Fix deprecated skip_existing to skip-existing
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.68%. Comparing base (52daaaf) to head (82356a2).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #447   +/-   ##
=======================================
  Coverage   74.68%   74.68%           
=======================================
  Files          43       43           
  Lines        1118     1118           
=======================================
  Hits          835      835           
  Misses        283      283           

☔ 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.

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