Skip to content

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

Closed

Description

@uniqueg

Problem

The push job of .github/workflows/ci.yml runs in the environment dev-images with the Docker Hub credentials and installs setuptools-scm unpinned and without hash checks to derive the version of dev images (pip install "setuptools-scm>=8"). 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.

Relates to elixir-cloud-aai/cloud-registry#288 (the same fix there).

Proposed fix

Lock the build requirements (build-system.requires) in uv.lock as the dependency group build-system and install them in that step with hash checks: export them with a uv pinned by digest (ghcr.io/astral-sh/uv:<tag>@sha256:<digest>, a stage of the Dockerfile so that Dependabot's docker entry updates it) via uv export --frozen --only-group build-system --no-emit-project, without network, and install them with pip install --require-hashes --only-binary :all: --no-deps into a virtual environment of their own. Check release.yml for the same pattern. Needs the lock file of #375.

Acceptance criteria

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

Activity

  1. added this to the v0.4.0 milestone on Nov 1, 2026
  2. added
    priority: low
    status: blocked
    type: security
    workload: hours
    on Nov 1, 2026
  3. added
    status: in progress
    and removed
    status: blocked
    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