conduct-cli 0.4.62__tar.gz → 0.4.63__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.62 → conduct_cli-0.4.63}/PKG-INFO +1 -1
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/pyproject.toml +1 -1
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli/main.py +15 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli.egg-info/PKG-INFO +1 -1
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/README.md +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/setup.cfg +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/setup.py +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli/__init__.py +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli/api.py +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli/guard.py +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli/guardmcp.py +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli/hook_precompact_template.py +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli/hook_session_start_template.py +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli/hook_template.py +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli/mcp_server.py +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli.egg-info/SOURCES.txt +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli.egg-info/dependency_links.txt +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli.egg-info/entry_points.txt +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli.egg-info/requires.txt +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/src/conduct_cli.egg-info/top_level.txt +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/tests/test_guard_policy.py +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/tests/test_guard_savings.py +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/tests/test_hook_syntax.py +0 -0
- {conduct_cli-0.4.62 → conduct_cli-0.4.63}/tests/test_switch.py +0 -0
|
@@ -2267,6 +2267,21 @@ def cmd_test_security(args):
|
|
|
2267
2267
|
|
|
2268
2268
|
print(f"\n{BOLD}▶ conduct test-security — {len(_SECURITY_TEST_CASES)} patterns{RESET}\n")
|
|
2269
2269
|
|
|
2270
|
+
# Clean up previous test run findings before inserting fresh ones
|
|
2271
|
+
try:
|
|
2272
|
+
req = urllib.request.Request(
|
|
2273
|
+
f"{api_url}/security-findings?workspace_id={workspace_id}&source_run_id=conduct-test-security",
|
|
2274
|
+
headers={"X-Api-Key": api_key},
|
|
2275
|
+
method="DELETE",
|
|
2276
|
+
)
|
|
2277
|
+
with urllib.request.urlopen(req, timeout=8) as resp:
|
|
2278
|
+
r = _json.loads(resp.read())
|
|
2279
|
+
n = r.get("deleted", 0)
|
|
2280
|
+
if n:
|
|
2281
|
+
print(f" {GRAY}↺ Cleaned {n} previous test finding{'s' if n != 1 else ''}{RESET}\n")
|
|
2282
|
+
except Exception:
|
|
2283
|
+
pass # cleanup is best-effort
|
|
2284
|
+
|
|
2270
2285
|
passed = 0
|
|
2271
2286
|
failed = 0
|
|
2272
2287
|
for name, vtype, severity, description, test_file, test_line in _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
|