Skip to content

πŸ™Œ OpenHands: AI-Driven Development

chore(security): add Python dependency freshness guardrails (#13754)

Neha Prasad4d9e7af514fd
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 83c69a3bdd..a734780bd9 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -27,6 +27,23 @@ updates:
patterns:
- "*"
+ - package-ecosystem: "pip"
+ directory: "/enterprise"
+ schedule:
+ interval: "daily"
+ cooldown:
+ default-days: 7
+ open-pull-requests-limit: 5
+ groups:
+ security-all:
+ applies-to: "security-updates"
+ patterns:
+ - "*"
+ version-all:
+ applies-to: "version-updates"
+ patterns:
+ - "*"
+
- package-ecosystem: "npm"
directory: "/frontend"
schedule:
diff --git a/enterprise/pyproject.toml b/enterprise/pyproject.toml
index 8d45db4b19..6acaa8b8ad 100644
--- a/enterprise/pyproject.toml
+++ b/enterprise/pyproject.toml
@@ -96,3 +96,7 @@ asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
relative_files = true
omit = [ "tests/*" ]
+
+[tool.uv]
+exclude-newer = "7 days"
+exclude-newer-package = { openhands-agent-server = false, openhands-sdk = false, openhands-tools = false }
diff --git a/enterprise/uv.lock b/enterprise/uv.lock
index 7518fc90bf..3df657f0d9 100644
--- a/enterprise/uv.lock
+++ b/enterprise/uv.lock
@@ -1,3 +1,12 @@
version = 1
revision = 3
requires-python = ">=3.12"
+
+[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 = "P7D"
+
+[options.exclude-newer-package]
+openhands-agent-server = false
+openhands-tools = false
+openhands-sdk = false
diff --git a/pyproject.toml b/pyproject.toml
index c14893dd70..d76ec6cc7a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -347,3 +347,7 @@ lint.flake8-quotes.inline-quotes = "single"
concurrency = [ "gevent" ]
relative_files = true
omit = [ "enterprise/tests/*", "**/test_*" ]
+
+[tool.uv]
+exclude-newer = "7 days"
+exclude-newer-package = { openhands-agent-server = false, openhands-sdk = false, openhands-tools = false }
diff --git a/uv.lock b/uv.lock
index 5df37ffde8..c827a60a8a 100644
--- a/uv.lock
+++ b/uv.lock
@@ -10,6 +10,15 @@ resolution-markers = [
"python_full_version < '3.13' and sys_platform != 'emscripten' 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 = "P7D"
+
+[options.exclude-newer-package]
+openhands-agent-server = false
+openhands-tools = false
+openhands-sdk = false
+
[[package]]
name = "agent-client-protocol"
version = "0.10.1"