Repository navigation
security: verify published PyPI artifact bytes - #497
Merged
Merged
Conversation
codeforester
force-pushed
the
security/489-20261028-pypi-byte-verification
branch
from
October 27, 2026 18:53
4aed2bf to
a83d688
Compare
codeforester
commented
Oct 27, 2026
codeforester
commented
Oct 27, 2026
codeforester
commented
Oct 27, 2026
codeforester
commented
Oct 27, 2026
Contributor
Author
|
Implemented the review fix in commit
|
Contributor
Author
|
Follow-up after the latest push (
Leaving these threads open since the underlying code is unchanged for 3 of 4, and the 4th is only partially fixed. |
Contributor
Author
|
Addressed the remaining evidence/hash-validation feedback in commit
|
Contributor
Author
|
Confirmed — this push (
No remaining concerns from me on this PR. The two "Benchmark" check failures on this run aren't required status checks, so they shouldn't block merge. |
codeforester
force-pushed
the
security/489-20261028-pypi-byte-verification
branch
from
October 28, 2026 15:09
f409ced to
0d10b6c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SHA256SUMSfile in the same gatePYPI-BYTE-VERIFICATION.jsonevidence as a workflow artifactSecurity rationale
Version and README checks alone do not prove that users received the reviewed bytes. The PyPI verification job now fails on missing, extra, renamed, or hash-mismatched files and records the result.
Validation
UV_CACHE_DIR=/private/tmp/base-cli-uv-cache uv run --extra dev pytest -q tests/test_verify_pypi_metadata.py tests/test_package_workflow.pygit diff --checkpassRelates to #489.