Skip to content

ci(release): pin pypi-publish to v1.14.3 - #11

Merged
OndrejDrapalik merged 1 commit into
mainfrom
chore/pypi-publish-1.14.3
Oct 23, 2026
Merged

OndrejDrapalik merged 1 commit into
mainfrom
chore/pypi-publish-1.14.3

Conversation

@OndrejDrapalik

Copy link
Copy Markdown
Contributor

What changed

Pin the release workflow's PyPI publishing action to pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3.

This is the patched version listed in the eMudhra intermediate-CA disclosure. It also replaces Twine 6.1.0, which rejects the Metadata-Version 2.5 emitted by the current build, with Twine 7.0.0.

A whole-repository search found one publishing-action reference. Only that line changed.

How I verified it

Upstream tag verification:

gh api repos/pypa/gh-action-pypi-publish/git/ref/tags/v1.14.3
gh api repos/pypa/gh-action-pypi-publish/git/tags/aef6c9b6e301dc803e1bc9133e9ce67ae9b0906b

The annotated tag object aef6c9b6e301dc803e1bc9133e9ce67ae9b0906b dereferences to commit 7245906fb61fa33a13554f9d5fb856fe61758086. GitHub reports the tag signature as verified.

gh api 'repos/pypa/gh-action-pypi-publish/contents/requirements/runtime.txt?ref=7245906fb61fa33a13554f9d5fb856fe61758086' --jq .content | base64 -d | rg '^(twine|packaging|certifi)=='

Result: twine==7.0.0, packaging==26.2, and certifi==2026.10.19. The old commit's runtime requirements pin twine==6.1.0.

Local verification with uv 0.13.4 and Python 3.13.16:

UV_PYTHON=3.13 uv build --no-sources
uvx --from 'twine==7.0.0' twine check dist/*
uvx --from 'twine==6.1.0' twine check dist/*
uvx --from 'twine==6.1.0' twine check dist/langchain_e2b-0.0.6.tar.gz
rg --hidden -n -g '!.git/**' 'gh-action-pypi-publish' .
git diff --check
  • The release workflow's build command successfully produced langchain_e2b-0.0.6.tar.gz and langchain_e2b-0.0.6-py3-none-any.whl. Direct archive inspection confirmed Metadata-Version 2.5 in both.
  • Twine 7.0.0 passed both artifacts (exit 0).
  • Twine 6.1.0 rejected the wheel (exit 1): InvalidDistribution: Invalid distribution metadata: '2.5' is not a valid metadata version. Checking the sdist separately produced the same error (exit 1).
  • The repository search found only the updated release pin, and git diff --check passed.

Residual risk

Local checks validate artifact compatibility with Twine 7.0.0. They do not execute the publishing action's container, GitHub OIDC authentication, attestations, or an actual PyPI upload. The publishing workflow runs on a published GitHub release, so the upload path will be exercised at the next release. No release or upload was performed for this change.

@cla-bot cla-bot Bot added the cla-signed label Oct 23, 2026
@OndrejDrapalik
OndrejDrapalik merged commit d20d40c into main Oct 23, 2026
10 checks passed
@OndrejDrapalik
OndrejDrapalik deleted the chore/pypi-publish-1.14.3 branch October 23, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant