mirror of
https://github.com/openai/codex-security.git
synced 2026-11-22 11:04:18 +08:00
* Simplify workbench dispatch, SDK helpers, and their test fixtures * test(sdk): keep distinct progress matrix helpers * test(sdk): expect canceled lifecycle for aborted component scans
12 lines
447 B
Bash
12 lines
447 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
command_directory=$(mktemp -d)
|
|
trap 'rm -rf "$command_directory"' EXIT
|
|
printf '%s\n' '#!/bin/sh' 'printf "%s\0" "$@"' > "$command_directory/codex-security"
|
|
chmod 755 "$command_directory/codex-security"
|
|
|
|
set -- bulk-scan /input/repositories.csv --output-dir /output
|
|
PATH="$command_directory:$PATH" /usr/local/bin/codex-security-entrypoint "$@" > "$command_directory/actual"
|
|
printf '%s\0' "$@" | cmp - "$command_directory/actual"
|