conduct-cli 0.4.66__tar.gz → 0.4.67__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/PKG-INFO +1 -1
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/pyproject.toml +1 -1
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli/main.py +18 -1
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/README.md +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/setup.cfg +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/setup.py +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli/guard.py +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli/hook_precompact_template.py +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli/hook_session_start_template.py +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli/hook_template.py +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/src/conduct_cli.egg-info/top_level.txt +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/tests/test_guard_policy.py +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/tests/test_guard_savings.py +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/tests/test_hook_syntax.py +0 -0
- {conduct_cli-0.4.66 → conduct_cli-0.4.67}/tests/test_switch.py +0 -0
|
@@ -2344,8 +2344,23 @@ def cmd_test_security_verify(args):
|
|
|
2344
2344
|
TIMEOUT = 300 # 15 runs × ~28s / 4 workers ≈ 105s; 300s gives headroom for queue variance
|
|
2345
2345
|
POLL_SECS = 5
|
|
2346
2346
|
|
|
2347
|
-
# ── Step
|
|
2347
|
+
# ── Step 0: fresh Security Automation project ─────────────────────────
|
|
2348
2348
|
print(f"\n{BOLD}▶ conduct test-security-verify{RESET}")
|
|
2349
|
+
print(f" {GRAY}Step 0/3 — refreshing Security Automation project…{RESET}")
|
|
2350
|
+
try:
|
|
2351
|
+
req = urllib.request.Request(
|
|
2352
|
+
f"{api_url}/secure/refresh-automation?workspace_id={workspace_id}",
|
|
2353
|
+
data=b"{}",
|
|
2354
|
+
headers={"Content-Type": "application/json", "X-Api-Key": api_key},
|
|
2355
|
+
method="POST",
|
|
2356
|
+
)
|
|
2357
|
+
with urllib.request.urlopen(req, timeout=15) as resp:
|
|
2358
|
+
_json.loads(resp.read())
|
|
2359
|
+
print(f" {GREEN}✓{RESET} Fresh project created with latest YAML\n")
|
|
2360
|
+
except Exception as e:
|
|
2361
|
+
print(f" {YELLOW}⚠ refresh failed ({e}) — using existing project{RESET}\n")
|
|
2362
|
+
|
|
2363
|
+
# ── Step 1: post test findings ────────────────────────────────────────
|
|
2349
2364
|
print(f" {GRAY}Step 1/3 — posting {len(_SECURITY_TEST_CASES)} test findings…{RESET}\n")
|
|
2350
2365
|
|
|
2351
2366
|
# Clean previous run
|
|
@@ -2400,6 +2415,7 @@ def cmd_test_security_verify(args):
|
|
|
2400
2415
|
|
|
2401
2416
|
# ── Step 2: poll until all findings move off "open" ───────────────────
|
|
2402
2417
|
print(f"\n {GRAY}Step 2/3 — waiting for triage pipeline (timeout {TIMEOUT}s)…{RESET}\n")
|
|
2418
|
+
|
|
2403
2419
|
deadline = _time.time() + TIMEOUT
|
|
2404
2420
|
final_statuses: dict[str, str] = {}
|
|
2405
2421
|
|
|
@@ -2435,6 +2451,7 @@ def cmd_test_security_verify(args):
|
|
|
2435
2451
|
# ── Step 3: report per-finding results ────────────────────────────────
|
|
2436
2452
|
print(f"\n {GRAY}Step 3/3 — results{RESET}\n")
|
|
2437
2453
|
|
|
2454
|
+
|
|
2438
2455
|
all_pass = True
|
|
2439
2456
|
name_by_id = {}
|
|
2440
2457
|
for i, (name, *_) in enumerate(_SECURITY_TEST_CASES):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|