Skip to content

Add hash-pinned dependency lockfile (pip-compile or uv lock) #390

@aallan

Description

@aallan

The pyproject.toml uses version ranges (>=7.0, >=4.0) which is standard, but a lockfile that pins exact versions with hashes prevents dependency confusion and typosquatting attacks on the supply chain.

Options:

  • pip-tools (pip-compile): generates requirements.txt with hashes
  • uv lock: generates uv.lock in TOML format

Either approach ensures reproducible installs and makes supply chain attacks detectable. The lockfile should be checked in and kept updated via Dependabot or a CI step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ciCI/CD and GitHub ActionsdependenciesDependency updates

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions