Skip to content

ci: pin pypa/gh-action-pypi-publish to a commit SHA - #11

Merged
abrichr merged 1 commit into
mainfrom
ci/pin-pypi-publish-action
Aug 20, 2026
Merged

ci: pin pypa/gh-action-pypi-publish to a commit SHA#11
abrichr merged 1 commit into
mainfrom
ci/pin-pypi-publish-action

Conversation

@abrichr

@abrichr abrichr commented Aug 20, 2026

Copy link
Copy Markdown
Member

Problem

This workflow referenced the publish action by the floating release/v1 tag:

uses: pypa/gh-action-pypi-publish@release/v1

Every other release pipeline in the org pins a full 40-character commit SHA. A floating tag means upstream can change what runs in a release here with no commit in this repo — including a change that breaks publishing outright.

That risk is not theoretical. v1.14.0 bundles twine 6.1.0 and packaging 25.0, which reject Metadata-Version: 2.5 — the version current hatchling emits:

InvalidDistribution: Invalid distribution metadata: '2.5' is not a valid metadata version

That pin broke the openadapt-evals 0.91.0 release: the tag, the version commit and the GitHub release all landed, then Publish to PyPI failed — leaving PyPI stale while every other artifact claimed the version had shipped.

Fix

Pin dc37677b2e1c63e2034f94d8a5b11f265b73ba33 (v1.14.2, twine 7.0.0 + packaging 26.2), with a comment recording why.

This is not an untested guess. v1.14.2 is the pin already used by OpenAdapt, openadapt-agent, openadapt-capture, openadapt-desktop, openadapt-evals, openadapt-flow and openadapt-tray, and it was just proven end to end by live PyPI uploads of openadapt-privacy 1.0.3 and openadapt-types 0.10.1 — both logged Checking dist/…: PASSED on the exact metadata check that v1.14.0 fails.

Verification

The tag was resolved against upstream rather than copied: v1.14.2dc37677b2e1c63e2034f94d8a5b11f265b73ba33. The workflow still parses as valid YAML.

No release is cut

The title is ci:, and patch_tags is ["fix", "perf"] — so this merges without cutting a release. That is deliberate: this repo is not currently broken (release/v1 floats to a working version today), so there is no failure to prove fixed, and the pin is already validated elsewhere. The new pin takes effect at this repo's next real release.

🤖 Generated with Claude Code

This workflow referenced the publish action by the floating `release/v1`
tag. Every other release pipeline in the org pins a full 40-character
commit SHA, so this one could change behaviour with no commit in this
repo -- including a change that breaks publishing.

That risk is concrete. v1.14.0 bundles twine 6.1.0 and packaging 25.0,
which reject Metadata-Version 2.5 -- the version current hatchling emits:

  InvalidDistribution: Invalid distribution metadata:
  '2.5' is not a valid metadata version

That pin broke the openadapt-evals 0.91.0 release. The tag, the version
commit and the GitHub release all landed, then "Publish to PyPI" failed,
leaving PyPI stale while every other artifact said the version shipped.

Pin v1.14.2 (twine 7.0.0 + packaging 26.2), the version already proven by
live uploads of openadapt-privacy 1.0.3 and openadapt-types 0.10.1.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@abrichr
abrichr merged commit 54c9c0d into main Aug 20, 2026
4 checks passed
@abrichr
abrichr deleted the ci/pin-pypi-publish-action branch August 20, 2026 11:10
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