chore(ci): support metadata 2.5 publishing - #233
Conversation
…h 5 updates Bumps the github-actions-major group with 5 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4` | `7` | | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | `5.4.2` | `9.0.0` | | [actions/setup-python](https://github.com/actions/setup-python) | `5` | `7` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4` | `7` | | [googleapis/release-please-action](https://github.com/googleapis/release-please-action) | `4.4.1` | `5.0.0` | Updates `actions/checkout` from 4 to 7 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v7) Updates `astral-sh/setup-uv` from 5.4.2 to 9.0.0 - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](astral-sh/setup-uv@d4b2f3b...c771a70) Updates `actions/setup-python` from 5 to 7 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v5...v7) Updates `actions/upload-artifact` from 4 to 7 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v4...v7) Updates `googleapis/release-please-action` from 4.4.1 to 5.0.0 - [Release notes](https://github.com/googleapis/release-please-action/releases) - [Changelog](https://github.com/googleapis/release-please-action/blob/main/CHANGELOG.md) - [Commits](googleapis/release-please-action@5c625bf...45996ed) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-major - dependency-name: actions/setup-python dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-major - dependency-name: actions/upload-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-major - dependency-name: astral-sh/setup-uv dependency-version: 9.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-major - dependency-name: googleapis/release-please-action dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-major ... Signed-off-by: dependabot[bot] <support@github.com>
7a4d198 to
4cd6f8b
Compare
|
Release recovery update: this branch is now current with |
|
Also adds a guarded manual retry to the existing trusted |
kartojal
left a comment
There was a problem hiding this comment.
Approved to recover the confirmed polymarket-client 0.6.0 PyPI publication.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1f4f9d5. Configure here.
| echo "Invalid release tag: $RELEASE_TAG" >&2 | ||
| exit 1 | ||
| fi | ||
| gh release view "$RELEASE_TAG" --json isDraft --jq 'select(.isDraft == false)' >/dev/null |
There was a problem hiding this comment.
Draft release check never fails
Medium Severity
The published-release guard uses gh ... --jq 'select(.isDraft == false)' and discards the result. When the release is a draft, select emits nothing but gh still exits 0, so the step continues and can build and publish from a draft tag via workflow_dispatch.
Reviewed by Cursor Bugbot for commit 1f4f9d5. Configure here.


Summary
pypa/gh-action-pypi-publishto v1.14.2 in both publishing workflowspolymarket-client-v*tagContext
The
0.6.0build emits valid Core Metadata 2.5. The previously pinned publisher rejected that metadata before upload because its Twine version only supported metadata through 2.4. Publisher v1.14.2 adds Metadata 2.5 support.The retry workflow validates that the requested tag matches
polymarket-client-v*, confirms its GitHub release is published, and checks out that immutable tag before building and publishing.Failed release run: https://github.com/Polymarket/py-sdk/actions/runs/31716824121
Verification
git diff --check