mirror of
https://github.com/trailofbits/skills
synced 2026-06-21 14:12:00 +00:00
e9dec942d1
* Add BATS test suite for intercept-legacy-python hook - Add 64 tests covering all code paths: early exits, allow cases (uv run, diagnostics, search tools), deny cases (python/pip execution, uv pip, piped commands, compound commands) - Add test_helper.bash with run_hook, assert_allow, assert_deny, and assert_suggestion_contains helpers - Add bats job to CI workflow - Fix hook to properly detect python execution in piped commands like `python script.py | grep foo` and `find . | xargs python` Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Fix CI failures in hook test suite - Suppress jq stderr in run_hook_no_uv to avoid "Broken pipe" error when hook script exits early due to missing uv - Fix shfmt formatting: remove trailing backslash, single space before inline comments Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>