Skip to content

Commit 56d9481

Browse files
wip: potential fix for code scanning alert no. 4: 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 e4b797a commit 56d9481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/plugin-lifecycle.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export const commands = {
245245
assert.ok(existsSync(builtPluginFile), 'Built plugin file should exist');
246246

247247
// Step 4: Load the plugin
248-
execSync(`node src/index.ts load plugin --from file:${scaffoldDir}`, {
248+
execFileSync('node', ['src/index.ts', 'load', 'plugin', '--from', `file:${scaffoldDir}`], {
249249
cwd: process.cwd(),
250250
stdio: 'pipe',
251251
timeout: 10000

0 commit comments

Comments
 (0)