Skip to content

Add swift integration test#3

Draft
zunda-pixel wants to merge 2 commits intomainfrom
add-swift-integration-test
Draft

Add swift integration test#3
zunda-pixel wants to merge 2 commits intomainfrom
add-swift-integration-test

Conversation

@zunda-pixel
Copy link
Copy Markdown
Owner

No description provided.

${readFileSync(fixturePath, 'utf8')}
`,
);
return shell.execSync(`swift ${filePath}`);

Check warning

Code scanning / CodeQL

Shell command built from environment values

This shell command depends on an uncontrolled [file name](1).

},
swift: (fixturePath: string) => {
const filePath = `/tmp/${path.basename(fixturePath)}`;

Check warning

Code scanning / CodeQL

Unsafe shell command constructed from library input

This string concatenation which depends on [library input](1) is later used in a [shell command](2).
${readFileSync(fixturePath, 'utf8')}
`,
);
return shell.execSync(`swift ${filePath}`);

Check warning

Code scanning / CodeQL

Unsafe shell command constructed from library input

This string concatenation which depends on [library input](1) is later used in a [shell command](2).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants