Skip to content

ci: hash-check setuptools-scm in the push job #288

Closed

Description

@uniqueg

Problem

Since #282, the image build installs the build requirements of the app (setuptools, setuptools-scm) from uv.lock with hash checks (dependency group build-system). CI still installs setuptools-scm unpinned and without hash checks, to derive the version of dev images: pip install "setuptools-scm>=8" in the push job of .github/workflows/ci.yml. That job later logs in to Docker Hub and pushes the image, so a compromised release of setuptools-scm or its dependencies (vcs-versioning, packaging, setuptools) would run code in a job that holds registry credentials and builds the image.

Proposed fix

Install the locked build requirements in that step instead, with hash checks, e.g. export them with uv (uv export --frozen --only-group build-system --no-emit-project) and install them with pip install --require-hashes --only-binary :all: --no-deps. uv itself would have to come in verified, e.g. via a pinned astral-sh/setup-uv action. Check release.yml for the same pattern.

Acceptance criteria

  • No job that holds publishing credentials installs Python packages without hash checks.
  • Dev image versions are derived as before.

Found in the review of the PR for #282.

Activity

  1. added
    priority: low
    status: triage
    type: security
    workload: hours
    on Oct 29, 2026
  2. added this to the v1.0.0-rc1 milestone on Nov 1, 2026
  3. added
    status: in progress
    and removed
    status: triage
    on Nov 1, 2026
  4. removed
    status: in progress
    on Nov 1, 2026
  5. added
    type: ci / cd
    on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: lowtype: ci / cdtype: securityworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions