MCPcopy
hub / github.com/openai/plugins / require_scannable_target

Function require_scannable_target

plugins/codex-security/scripts/workbench_db.py:934–939  ·  view source on GitHub ↗
(target: Path)

Source from the content-addressed store, hash-verified

932
933
934def require_scannable_target(target: Path) -> None:
935 metadata = git_target_metadata(target)
936 if metadata["isGit"] and not metadata["isWorktree"]:
937 raise SystemExit(
938 "Codex Security requires a checked-out worktree, not a bare Git repository."
939 )
940
941
942def stable_target_id(target: Path) -> str:

Callers 3

inspect_setup_valuesFunction · 0.85
set_diff_targetFunction · 0.85
start_scanFunction · 0.85

Calls 1

git_target_metadataFunction · 0.90

Tested by

no test coverage detected