fix(security): honor CARGO_TARGET_DIR in the G-C lane
The lane hard-coded target/debug/marqdo, so a reproducible run from a clean git archive with an external CARGO_TARGET_DIR built the binary and then reported a false missing-binary failure. TESTS: bash -n tests/security/run-lane.sh; G-C lane on a clean archive. CI_URL: none from this host (Gitee remote, no GitHub credentials). SECURITY_SCOPE: unchanged; the lane still requires an ordinary user and 7/7.
This commit is contained in:
1 parent
d05f36fd26
commit
f075c967f2
1 file changed
+2
-1
@@ -33,7 +33,8 @@ cargo test -p marqdo-sandbox --test security_linux -- --test-threads=1
|
|||||||
echo "== build CLI =="
|
echo "== build CLI =="
|
||||||
cargo build -p marqdo-cli
|
cargo build -p marqdo-cli
|
||||||
|
|
||||||
bin="$repo/target/debug/marqdo"
|
target_dir="${CARGO_TARGET_DIR:-$repo/target}"
|
||||||
|
bin="$target_dir/debug/marqdo"
|
||||||
platform="$("$bin" inspect examples/hello.mq.md --platform --json)"
|
platform="$("$bin" inspect examples/hello.mq.md --platform --json)"
|
||||||
python3 - "$platform" <<'PY'
|
python3 - "$platform" <<'PY'
|
||||||
import json, sys
|
import json, sys
|
||||||
|
|||||||
Reference in new issue
Block a user