Sync shared snapshot from 74942e5
Security / Secrets (gitleaks) (push) Successful in 1m19s
Security / Dependencies (Trivy) (push) Successful in 1m16s
Security / Code (Semgrep) (push) Successful in 2m32s
Docker / Docker Build & Push (push) Successful in 9m4s

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
GabrielandClaude Haiku 5.5 committed 2026-11-10 14:52:27 +01:00
1 parent 0fd1805502
commit 833eab04af
4 files changed
+25 -14

No files matched your search

@@ -104,7 +104,12 @@ class InternalSecretTests(unittest.TestCase):
class UrlValidationTests(unittest.TestCase):
def test_rejects_urls_that_are_not_http_or_https_with_a_host(self):
store = Store(Info(auth_guard_url="http://auth.example.com"))
for bad in ["javascript:alert(1)", "auth.example.com", "ftp://carrier.example.com", "http://"]:
for bad in [
"javascript:alert(1)",
"auth.example.com",
"ftp://carrier.example.com",
"http://",
]:
with self.subTest(url=bad), self.assertRaises(ValueError):
store.set(Info(auth_guard_url=bad))
with self.assertRaises(ValueError):