From 3ad90e5894a16d30d58788e6c0ac19dcd8d6a608 Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Tue, 28 Jul 2026 11:12:36 -0400 Subject: [PATCH] Potential fix for pull request finding 'CodeQL / Shell command built from environment values' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- backend/test/scripts/container-user.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/test/scripts/container-user.test.ts b/backend/test/scripts/container-user.test.ts index 5e8562bd..0ad78e15 100644 --- a/backend/test/scripts/container-user.test.ts +++ b/backend/test/scripts/container-user.test.ts @@ -49,7 +49,7 @@ afterEach(() => { }) const runScript = (snippet: string, env: Record = {}) => - spawnSync('bash', ['-c', `set -e\nsource "${libPath}"\n${snippet}`], { + spawnSync('bash', ['-c', 'set -e\nsource "$1"\n$2', '--', libPath, snippet], { encoding: 'utf-8', env: { ...process.env,