mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-04 10:48:20 +00:00
Use the current Bash in subprocess audit fixtures
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
This commit is contained in:
1 parent
a19d7a45fb
commit
e22c973d55
1 file changed
+3
-2
@@ -6,7 +6,7 @@ set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
|
||||
python3 - "$ROOT" <<'PY'
|
||||
python3 - "$ROOT" "$BASH" <<'PY'
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
import subprocess
|
||||
@@ -14,6 +14,7 @@ import sys
|
||||
import tempfile
|
||||
|
||||
root = Path(sys.argv[1])
|
||||
bash_path = sys.argv[2]
|
||||
failures = []
|
||||
passed = 0
|
||||
|
||||
@@ -31,7 +32,7 @@ with tempfile.TemporaryDirectory(prefix="cbm-security-subprocess-") as directory
|
||||
allowances, encoding="utf-8"
|
||||
)
|
||||
result = subprocess.run(
|
||||
["bash", str(fixture / "scripts" / "security-audit.sh")],
|
||||
[bash_path, str(fixture / "scripts" / "security-audit.sh")],
|
||||
cwd=fixture, text=True, capture_output=True,
|
||||
)
|
||||
output = result.stdout + result.stderr
|
||||
|
||||
Reference in new issue
Block a user