You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: hash-check setuptools-scm in the push job #288
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.
Activity