Fix 33 Dependabot security alerts + add least-privilege CI permissions#247
Merged
Conversation
…ix per-shard coverage gate Bumps aiohttp, cryptography, urllib3, lxml, soupsieve, transformers, idna, requests, pygments, pytest, and pyasn1 to their patched versions, closing 33 open Dependabot alerts. Upgrade was scoped to only the flagged packages (not a full `uv lock --upgrade`) since a blanket upgrade also pulled in typer 0.27, which vendors its own click fork and breaks test_run_provider_command_error. Adds a top-level `permissions: contents: read` block to ci.yml, closing 3 code-scanning alerts for workflows with no explicit GITHUB_TOKEN permissions. Adds `--cov-fail-under=0` to each matrix shard's pytest invocation in ci.yml. Every "test" job was failing in CI because pytest-cov applies pyproject.toml's global `fail_under = 60` to each shard's own partial coverage (~12% each), even though the combined total only clears 60% after report-coverage merges all shards. The final report-coverage job already enforces `--fail-under=60` on the merged total, so the per-shard threshold was redundant and wrong. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: chris hay <chris.hay@uk.ibm.com>
chrishayuk
force-pushed
the
security/dependency-updates
branch
from
July 21, 2026 16:44
e9feb02 to
e63e219
Compare
This was referenced Jul 22, 2026
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
uv.lock, closing all 33 open Dependabot alerts.uv lock --upgrade-package ...) rather than a fulluv lock --upgrade, since a blanket upgrade also pulls in typer 0.27 (vendors its own click fork) which breakstest_run_provider_command_error. Kept the diff minimal and green.permissions: contents: readblock to.github/workflows/ci.yml, closing 3 code-scanning alerts for jobs with no explicitGITHUB_TOKENpermissions.Also dismissed 7 code-scanning alerts as false positives (with rationale on each): 2
clear-text-logging-sensitive-dataalerts that only interpolate booleans/floats (never a real secret), and 5incomplete-url-substring-sanitizationalerts flagging test list-membership assertions rather than the realurlparse-based domain check.Note: PRs #239 (cryptography) and #236 (pyasn1) are superseded by this change; left untouched per repo owner's request.
Test plan
uv sync --all-extras --devuv run pytest -q— 4440 passed, 12 skippedCo-Authored-By: Claude Sonnet 5 noreply@anthropic.com