Skip to content

Fix open Dependabot security alerts - #33

Merged
Pjieter merged 2 commits into
mainfrom
fix/dependabot-alerts
Oct 26, 2026
Merged

Pjieter merged 2 commits into
mainfrom
fix/dependabot-alerts

Conversation

@Pjieter

@Pjieter Pjieter commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixes all 77 open Dependabot alerts. Every vulnerable package in poetry.lock now sits at or above its first patched version. No alert is left open.

 pyproject.toml  [dependency-groups].dev
-  "pytest (>=8.4.2,<9.0.0)"
+  "pytest (>=9.0.3,<10.0.0)"      # old cap blocked the patched 9.0.3

 .github/workflows/sonarcloud.yml
-  uses: SonarSource/sonarqube-scan-action@v5.3.1
+  uses: SonarSource/sonarqube-scan-action@v6.0.0

The lockfile was updated with poetry update --lock <pkgs>, limited to the vulnerable packages. Poetry took the newest version each existing constraint allows, so some land above the minimum patched version.

Package Old -> new Highest severity Alerts
pillow 12.1.1 -> 13.0.0 critical 29 (#22, #24-27, #40-52, #78-86, #91, #93)
certifi 2026.2.25 -> 2026.10.23 critical #92
anyio 4.12.1 -> 4.15.1 critical #63, #64
virtualenv 21.2.0 -> 21.14.13 high 11 (#69, #70, #74, #75, #87-90, #94-96)
tornado 6.5.5 -> 6.6 high 10 (#32-35, #58, #59, #61, #71-73)
cryptography 46.0.5 -> 50.0.2 high 6 (#19, #21, #36, #53, #66, #67)
urllib3 2.6.3 -> 2.8.0 high 5 (#28, #29, #68, #76, #77)
ujson 5.12.0 -> 6.0.0 high #30, #37
msgpack 1.1.2 -> 1.2.3 high #39
cbor2 5.8.0 -> 6.1.5 (CPython), 5.9.0 (PyPy) high #16
SonarSource/sonarqube-scan-action v5.3.1 -> v6.0.0 high #2
asteval 1.0.8 -> 1.0.10 medium #56, #57
autobahn 25.12.2 -> 26.10.2 medium #65
idna 3.11 -> 3.20 medium #31
pydantic-settings 2.13.1 -> 2.16.1 medium #38
pytest 8.4.2 -> 9.1.1 medium #23
requests 2.32.5 -> 2.34.2 medium #18
Pygments 2.19.2 -> 2.21.0 low #20

Transitive changes pulled in by the above: distlib 0.4.0 -> 0.4.4, packaging 26.0 -> 26.3, python-discovery 1.2.0 -> 1.6.4, typing-extensions 4.15.0 -> 4.16.0. autobahn 26 no longer needs py-ubjson, so it is gone from the lock. The lock was written with Poetry 2.2.1, the version CI uses; a lock written by Poetry 2.3.2 failed poetry install in CI with a content-hash mismatch.

Supersedes #32 (same sonarqube-scan-action bump).

Evidence

Local run, Windows, Python 3.13.11, after poetry install --all-groups:

  • poetry run pytest -v: 3 passed (pytest 9.1.1)
  • poetry run ruff check: All checks passed
  • poetry run ruff format --check: 9 files already formatted
  • poetry check and poetry build: OK
  • Import smoke test of transmeaspy, qcodes, quantify, zhinst.qcodes, qcodes_contrib_drivers, PIL, tornado, autobahn, matplotlib, requests, cryptography: OK (Pillow 13.0.0, tornado 6.6)

The test suite is still the template my_module tests, so it says little about runtime behaviour with the new versions. The import smoke test is the stronger signal here.

SonarCloud fails at the scan step: GET https://api.sonarcloud.io/analysis/jres returns HTTP 403 and the scanner asks to check SONAR_TOKEN. Install, tests and coverage pass before that step. The token is set but is rejected, so it has probably expired or been revoked. SonarCloud has failed on main since March 2026 (last success September 2025), so this is a secrets problem that predates this PR, not something it caused. The token needs regenerating in SonarCloud and updating in the repo secrets.

Merge Danger

Door: two-way

Revert the commit to restore the old lockfile.

Blast Radius: dependencies

ujson 6 and cbor2 6 are major bumps. Both are transitive (via autobahn/qcodes), not imported by TransMeasPy itself. Anyone pinning pytest <9 in a dev env will need to update.

🤖 Generated with Claude Code

Upgrade vulnerable packages in poetry.lock to at least their first
patched versions, raise the pytest dev constraint to >=9.0.3,<10 so
the patched release can resolve, and bump
SonarSource/sonarqube-scan-action to v6.0.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 8ba6c890-a209-42ae-8151-dfa2633ed960
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Poetry 2.3.2 wrote a content hash that the Poetry 2.2 used in CI
rejects. Package versions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Pjieter
Pjieter merged commit 874bfe7 into main Oct 26, 2026
31 of 32 checks passed
@Pjieter
Pjieter deleted the fix/dependabot-alerts branch October 26, 2026 21:03
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