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 #376
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.
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).
Activity