Skip to content

fix: [DEV-16400] publish to PyPI with uv publish instead of the blocked pypa action - #463

Draft
inkmugs wants to merge 1 commit into
masterfrom
fix/dev-16400
Draft

inkmugs wants to merge 1 commit into
masterfrom
fix/dev-16400

Conversation

@inkmugs

@inkmugs inkmugs commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • publish to PyPI with uv publish instead of the blocked pypa action

Jira

  • Ticket: DEV-16400
  • Update the Jira ticket before review if investigation changed scope, risks, dependencies, or verification steps.

Changelog Summary

  • The release workflow's publish job now uploads with uv publish and OIDC trusted publishing, using the org setup-uv fork.
  • Remove pypa/gh-action-pypi-publish, which the org Actions policy rejects.

Contract Changes

  • None.

Backward Compatibility / Breaking Changes

  • No SDK change. The first tag release (7.13.0, run 45273826802) failed at startup with no jobs, the same way CI did with astral-sh/setup-uv before it was switched to the org fork; nothing was published. The PyPI trusted publisher settings are unchanged (repository indico-client-python, workflow release.yml, environment pypi). After merge the 7.13.0 tag must be deleted and pushed again on the merged commit, because a tag run uses the workflow file from the tagged commit.

Tests and Verification Added

  • No new tests: CI configuration only.

Net New Behaviors Requiring Integration Tests

  • None. The publish step is only exercised by a real tag push.

Validation

  • actionlint clean on release.yml. uv publish options checked against the installed uv (--trusted-publishing always). A security review of the publish job found no critical or important issues: with --trusted-publishing always, uv 0.13.9 fails closed when no OIDC token is available and refuses stored credentials, and the claims PyPI checks are unchanged. Not yet run on GitHub.

Note

Medium Risk
Release publishing path changes; failures only surface on tag releases, but a bad publish step would block shipping to PyPI.

Overview
The release workflow publish job no longer uses the blocked pypa/gh-action-pypi-publish action. It now installs uv via the org IndicoDataSolutions/setup-uv fork (pinned 0.13.9, checksums required, cache off) and uploads artifacts with uv publish --trusted-publishing always dist/*.

OIDC (id-token: write) and the pypi environment are unchanged so PyPI trusted publishing should keep working once a tag release runs on the updated workflow.

Reviewed by Cursor Bugbot for commit 03676ca. Bugbot is set up for automated code reviews on this repo. Configure here.

Known trade-offs

  • uv publish does not generate PEP 740 attestations, which the pypa action did. Releases publish normally but without PyPI-visible signed provenance. Earlier releases from Harness had none either.
  • If an upload fails part way, re-run only the failed publish job. Re-running all jobs rebuilds the wheel, and PyPI rejects a rebuilt file that differs from one already uploaded.
  • actions/upload-artifact and actions/download-artifact are used only by this workflow, so no run has yet shown the org policy allows them.

This branch has not been deployed

No deployments
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