Skip to content

build: refresh pinned python image digest and patch vulnerable transitive deps - #215

Merged
c-vigo merged 3 commits into
devfrom
chore/213-update-python-deps
Mar 3, 2026
Merged

c-vigo merged 3 commits into
devfrom
chore/213-update-python-deps

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

Refreshes the pinned python:3.12-slim-bookworm base image digest, patches vulnerable transitive Python dependencies by adding uv constraints and regenerating the lockfile, and fixes the CI Security Scan safety install pin so dependency resolution succeeds.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • Containerfile
    • Updated digest pin for python:3.12-slim-bookworm to latest upstream digest
  • pyproject.toml
    • Added [tool.uv].constraint-dependencies for urllib3, filelock, and virtualenv minimum safe versions
  • uv.lock
    • Regenerated lockfile with constrained versions (urllib3 2.6.3, filelock 3.25.0, virtualenv 21.1.0)
    • Included new transitive package python-discovery
  • CHANGELOG.md
    • Added Unreleased entries in Changed, Fixed, and Security categories for this PR scope
  • .github/workflows/ci.yml
    • Bumped safety pin from 3.2.11 to 3.7.0 in Python Security Scan job
  • assets/workspace/.github/workflows/ci.yml
    • Bumped safety pin from 3.2.11 to 3.7.0 in workspace-template Security Scan job

Changelog Entry

Changed

  • Refresh pinned Python base image digest (#213)
    • Update python:3.12-slim-bookworm pinned digest in Containerfile to the latest upstream value while keeping the same tag

Security

  • Update vulnerable Python dependencies (#88)
    • Add uv constraints for transitive dependencies: urllib3>=2.6.3, filelock>=3.20.3, and virtualenv>=20.36.1
    • Regenerate uv.lock with patched resolutions (urllib3 2.6.3, filelock 3.25.0, virtualenv 21.1.0)

Fixed

  • CI python security scan fails on unsatisfiable safety pin (#213)
    • Bump workflow safety install pin from 3.2.11 to 3.7.0 in both root and workspace-template CI workflows

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

Ran just test locally by author; no additional manual testing.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

N/A

Refs: #213, #88

@c-vigo c-vigo self-assigned this Mar 3, 2026
@c-vigo
c-vigo enabled auto-merge March 3, 2026 09:42
@c-vigo
c-vigo merged commit 267cb25 into dev Mar 3, 2026
12 checks passed
@c-vigo
c-vigo deleted the chore/213-update-python-deps branch March 3, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant