Skip to content

Commit

Permalink
Fix code scanning alert no. 78: Shell command built from environment …
Browse files Browse the repository at this point in the history
…values

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
nedsalk and github-advanced-security[bot] authored Nov 22, 2024
1 parent 1b81f2a commit 05f3dec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/fuels/test/features/dev-2.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { execSync, spawn } from 'child_process';
import { execSync, execFileSync, spawn } from 'child_process';
import { mkdirSync, rmSync } from 'fs';
import { tmpdir } from 'os';
import path from 'path';
Expand All @@ -14,8 +14,8 @@ function runInit() {

mkdirSync(init, { recursive: true });

execSync('pnpm init', { cwd: init });
execSync(`pnpm link ${fuelsPath}`, { cwd: init });
execFileSync('pnpm', ['init'], { cwd: init });
execFileSync('pnpm', ['link', fuelsPath], { cwd: init });

const contractDir = path.join(init, 'contract');
const outputDir = path.join(init, 'output');
Expand Down

0 comments on commit 05f3dec

Please sign in to comment.