mirror of
https://github.com/elementalsouls/Claude-BugHunter.git
synced 2026-12-06 21:16:56 +08:00
- #279 (reported by @viwe-monai): a string out_of_scope/in_scope/seeds in scope.json was iterated per-character, so the deny list silently never matched; and an engagement name with a separator escaped --base. Scope now fails closed on a non-list scope field, and Engagement rejects a name that is empty, '.'/'..', or contains / \ : NUL. Tests: engine/test_scope_state_failclosed.py. - #280 (reported by @viwe-monai): runtime-tests only re-ran on engine/cbh/tests paths, skipping tests that guard mcp/, eval/, OSINT scripts, setup_harness_mcp, lint_skills, hunt.sh and the .ps1 files. Added those paths to both triggers. - #281 (reported by @airdropia): cve-refresh template captured $? after a command that exits 1 under `set -e` (issue step never ran) -> EXIT=0; ... || EXIT=$?; get_report now documented (README, server docstring, /intel); dead skill names hunt-cache-poisoning/-subdomain-takeover corrected; scripts/cbh.py uses realpath so a symlinked cbh imports itself. Test: tests/test_cbh_symlink.py. - #292 (reported by @Layfate): state.py and memory.py now fsync the temp file before the atomic rename, so a crash mid-save can't leave truncated JSON. Full suite green: engine 159, project 139, lint 85/0, doc-count 42/0, leak 0/382. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
16 lines
517 B
Python
16 lines
517 B
Python
#!/usr/bin/env python3
|
|
"""Thin shim — run the cbh CLI from a clone without installing.
|
|
|
|
Kept for backward compatibility with `scripts/cbh.py <cmd>` and the existing
|
|
symlink instructions. The implementation now lives in `cbh/cli.py`, which is also
|
|
the pip console-script entry point (`cbh`). See docs/cbh-cli.md.
|
|
"""
|
|
import os
|
|
import sys
|
|
|
|
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
|
|
from cbh.cli import main # noqa: E402
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|