Skip to content

Commit 8059928

Browse files
wip: potential fix for code scanning alert no. 5: Shell command built from environment values
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 7da2096 commit 8059928

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/integration/plugin-lifecycle.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,13 @@ export const commands = {
356356
);
357357

358358
// Load the plugin
359-
execSync(`node src/index.ts load plugin --from file:${conflictDir}`, {
359+
execFileSync('node', [
360+
'src/index.ts',
361+
'load',
362+
'plugin',
363+
'--from',
364+
`file:${conflictDir}`,
365+
], {
360366
cwd: process.cwd(),
361367
stdio: 'pipe',
362368
timeout: 10000

0 commit comments

Comments
 (0)