mirror of
https://github.com/s4u/maven-settings-action.git
synced 2026-02-18 00:00:26 +08:00
Sonarqube security fix (#225)
This commit is contained in:
@ -56,5 +56,5 @@ afterAll(() => {
|
|||||||
|
|
||||||
|
|
||||||
test('run with default values', () => {
|
test('run with default values', () => {
|
||||||
cp.execSync(`node ${cleanupPath}`, { env: process.env }).toString();
|
cp.spawnSync('node', [ `${cleanupPath}` ], { env: process.env }).toString();
|
||||||
})
|
})
|
||||||
|
|||||||
@ -74,7 +74,7 @@ test('run with all feature', () => {
|
|||||||
process.env['INPUT_SONATYPESNAPSHOTS'] = true;
|
process.env['INPUT_SONATYPESNAPSHOTS'] = true;
|
||||||
process.env['INPUT_ORACLEREPO'] = true;
|
process.env['INPUT_ORACLEREPO'] = true;
|
||||||
|
|
||||||
cp.execSync(`node ${indexPath}`, { env: process.env, stdio: 'inherit' });
|
cp.spawnSync('node', [ `${indexPath}` ], { env: process.env, stdio: 'inherit' });
|
||||||
|
|
||||||
const settingsStatus = fs.lstatSync(settingsPath);
|
const settingsStatus = fs.lstatSync(settingsPath);
|
||||||
expect(settingsStatus.isFile()).toBeTruthy();
|
expect(settingsStatus.isFile()).toBeTruthy();
|
||||||
|
|||||||
Reference in New Issue
Block a user