Skip to content

release tools lock: certifi 2026.7.22 -> 2026.10.23 (GHSA-6q48-6c7w-9gw2), a bounded re-resolve - #109

Merged
brettheap merged 1 commit into
mainfrom
chore/release-tools-certifi-2026.10.23
Nov 17, 2026
Merged

brettheap merged 1 commit into
mainfrom
chore/release-tools-certifi-2026.10.23

Conversation

@brettheap

@brettheap brettheap commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Moves the one certifi entry in .github/release-tools-cpython312-linux.txt from 2026.7.22 to 2026.10.23, with both of its files' hashes. Nothing else in the lock moves.

Why

certifi 2026.7.22 is inside GHSA-6q48-6c7w-9gw2 (critical; affected "< 2026.10.18"; the bundle carried an emSign root whose intermediates have compromised keys). 0.1.1 moved the package's own lock, constraints-cpython312-linux.txt, to 2026.10.23 and left this second pin behind on purpose: this file feeds only the release job's build tools (build, setuptools, twine and what they pull in). It is not in the image and not in the package. This pull request moves it too, so that no pinned certifi in the repository is on the advisory's affected side any more, and the two locks name the same release.

certifi reaches this file through requests, which twine requires.

What changed (one file, +12 / -3)

  • certifi==2026.7.22 -> certifi==2026.10.23, hashes for its wheel and its sdist:
    • e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1 (certifi-2026.10.23-py3-none-any.whl)
    • a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd (certifi-2026.10.23.tar.gz)
  • The header gets a dated note, beside the first one and in its style, saying this was a bounded re-resolve and what it moved.

No workflow file changes, no test changes. release.yml installs this file with --only-binary :all: --require-hashes, which the new hashes satisfy; nothing in tests/ or tests_runtime/ reads this file or pins its old value.

How it was made

The file's own recipe, with uv 0.12.18 (the version the header records) and the same platform, bounded so it cannot widen:

printf 'build==1.6.1\ntwine==7.0.0\nsetuptools==84.0.0\n' \
  | uv pip compile --generate-hashes --no-header --python-version 3.12 \
      --python-platform x86_64-manylinux_2_28 \
      --index-url https://pypi.org/simple \
      --upgrade-package certifi==2026.10.23 - -o <this file>

With the file as its own -o, uv keeps every pin it already carries, so only certifi can move.

What was checked

  • Nothing else moved. The new body differs from the old in exactly the three certifi lines. Three controls agree, the first two apart from uv's own -c annotation lines: the recipe under all 30 old pins held as constraints reproduces the old body; the recipe under the other 29 held as constraints, with certifi free, resolves certifi to 2026.10.23 and gives the new body; and the unchanged recipe over the new file as its own -o changes nothing. A full regeneration with no pins held would also have moved markdown-it-py, more-itertools, nh3 and pycparser, which is not what is asked for here.
  • The hashes are PyPI's, and the files match them. Taken from PyPI's JSON API and the simple index (both agree, neither file yanked), then both files were downloaded and hashed separately with sha256sum: 2 of 2 match.
  • It installs as release.yml installs it. In a fresh cpython 3.12 venv: pip install --disable-pip-version-check --only-binary :all: --require-hashes -r .github/release-tools-cpython312-linux.txt exits 0 and installs exactly the file's 30 pins (pip check clean, certifi 2026.10.23). The same command on a copy with a certifi hash altered exits 1 with "THESE PACKAGES DO NOT MATCH THE HASHES", so hash checking was on.
  • The release job's own steps run on it. In that venv, python -m build --no-isolation builds the sdist and the wheel, twine check --strict passes both, and requests completes a verified TLS request to the package index with the new certifi bundle.
  • Tests. tests/test_release_workflow.py, tests/test_certifi_floor.py, tests/test_triple_pin.py and tests_runtime/test_deploy_shape.py (250 cases) pass.

Left alone on purpose

Not part of this change, only noticed: setuptools==84.0.0, in this lock and in constraints-cpython312-linux.txt, is covered by GHSA-xmj3-9gf7-h52w (low severity; Windows-only path escape in setuptools' legacy wheel installation; fixed in 84.1.0). The release job runs on Linux, and the header says a release is built by the same setuptools the suite's own wheel builds run, so moving it is its own change in both files.

🤖 Generated with Claude Code

Summary by Sourcery

Update the release-tools certifi pin and hashes to the patched 2026.10.23 release without changing the remaining dependency set.

Bug Fixes:

  • Update the release-tools lock to certifi 2026.10.23 to address the affected version identified by GHSA-6q48-6c7w-9gw2.

Build:

  • Refresh the pinned certifi package hashes in the release-tools dependency lock while leaving all other pins unchanged.

…olve

`.github/release-tools-cpython312-linux.txt` locks, by hash, the tools the
release job builds with (build, setuptools, twine and what they pull in). It
still pinned certifi 2026.7.22, which GHSA-6q48-6c7w-9gw2 covers (critical;
fixed in 2026.10.18). 0.1.1 moved the package's own lock,
`constraints-cpython312-linux.txt`, and left this one: it feeds only the
release job's build tools and is not in the image or the package.

The file is re-resolved the way its header says, with uv 0.12.18 and the same
platform, but bounded. The file is its own `-o`, so uv keeps every pin it
carries, and `--upgrade-package certifi==2026.10.23` is the one upgrade named.
Exactly one entry moved, with both of its files' hashes (the wheel and the
sdist), taken from PyPI's JSON API and checked against the files downloaded
and hashed separately. A control run of the unchanged recipe over the new file
changes nothing, and a run under every other pin held as a constraint gives
the same body. A full regeneration would also have moved markdown-it-py,
more-itertools, nh3 and pycparser, which is not what was asked for.

The header's dated note records the re-resolve beside the first one, in its
own style. No workflow file changes: `release.yml` installs this file with
`--only-binary :all: --require-hashes`, and the new hashes satisfy that. No
test reads this file or pins the old value.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@sourcery-ai

sourcery-ai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 4 days and 9 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Reviewer's Guide

Lock files and vendored code

Update the release-tools lock’s certifi pin and hashes to 2026.10.23, with a dated note documenting the bounded re-resolve.

  • .github/release-tools-cpython312-linux.txt L34-42, L47-49

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T14:02:05.577755Z
We couldn’t complete this review. Comment @codex review to try again.
1cfb220 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap
brettheap merged commit 548aa6b into main Nov 17, 2026
4 checks passed
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