Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/openai/plugins
/ git_revision
Function
git_revision
plugins/codex-security/scripts/workbench_target.py:412–413 ·
view source on GitHub ↗
(target: Path)
Source
from the content-addressed store, hash-verified
410
411
412
def
git_revision(target: Path) -> str:
413
return
git_output(target,
"rev-parse"
,
"HEAD"
) or
"unversioned"
414
415
416
def
git_target_metadata(target: Path) -> dict[str, Any]:
Callers
4
start_scan
Function · 0.90
require_unchanged_target
Function · 0.90
remediation_checkout_snapshot
Function · 0.90
remediation_availability
Function · 0.90
Calls
1
git_output
Function · 0.85
Tested by
no test coverage detected