Skip to content

armgit / strix

Public Imported from GitHub
0

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

build(deps): enforce a 5-day release cooldown for uv and npm resolution (#1556)

alex sa3c31236bd63
diff --git a/.github/workflows/ci-package.yml b/.github/workflows/ci-package.yml
index 6673d7a0..31cddee1 100644
--- a/.github/workflows/ci-package.yml
+++ b/.github/workflows/ci-package.yml
@@ -31,6 +31,8 @@ jobs:
assert not any(name.startswith("strix/interface/tui/cmd/") for name in names)
PY
- name: Install into a clean environment and run the CLI
+ env:
+ UV_EXCLUDE_NEWER: 5 days
run: |
uv venv --python 3.12 /tmp/strix-smoke
uv pip install --python /tmp/strix-smoke/bin/python dist/*.whl
diff --git a/pyproject.toml b/pyproject.toml
index 20519dac..512d0e5c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -73,6 +73,12 @@ dev = [
[tool.pytest.ini_options]
asyncio_mode = "auto"
+[tool.uv]
+# Supply-chain cooldown: resolve only distributions that have been on the index for
+# at least 5 days, so a poisoned release (litellm 1.107.0, 2026-10-21) is never
+# picked up by `uv lock` / `uv add` before it can be caught and yanked.
+exclude-newer = "5 days"
+
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
diff --git a/strix/interface/viewer/frontend/.npmrc b/strix/interface/viewer/frontend/.npmrc
new file mode 100644
index 00000000..9cc62a4a
--- /dev/null
+++ b/strix/interface/viewer/frontend/.npmrc
@@ -0,0 +1,2 @@
+# Supply-chain cooldown: only install versions published at least 5 days ago (npm >= 11.10).
+min-release-age=5
diff --git a/uv.lock b/uv.lock
index ca20930d..efd0be26 100644
--- a/uv.lock
+++ b/uv.lock
@@ -9,6 +9,10 @@ resolution-markers = [
"python_full_version < '3.14' and sys_platform != 'win32'",
]
+[options]
+exclude-newer = "0001-01-01T00:00:00Z" # This has no effect and is included for backwards compatibility when using relative exclude-newer values.
+exclude-newer-span = "P5D"
+
[[package]]
name = "aiohappyeyeballs"
version = "2.6.2"