Skip to content

CICD-408 · Automated dependency update PR ​

Encyclopedia · Preview environments and developer experience · All snippets

Previous · CICD-407 · Next · CICD-409

1. Where it fits ​

  • Placement trusted automation run step.
  • Prerequisites trusted preview controller, disposable environment and scoped identities for external resources.
  • Platforms kubernetes, local-lab.

2. Copy the snippet ​

bash
uv lock --upgrade-package requests
git diff --check -- uv.lock
uv sync --locked
uv run pytest -q

3. How it works ​

Git computes a source difference over the selected paths or revisions. Choose an available base ref with the intended merge relationship. uv verifies the project's lock state and installs the resolved environment before tests use it.

4. Verify the result ​

Open a reviewed dependency PR after tests. Scope automated writes to the update branch.

Validation syntax-validated (Bash parse). Status definitions.