Sonarqube security fix (#225)

This commit is contained in:
Gary Moore
2022-09-12 22:41:59 +01:00
committed by GitHub
parent 0e3f5e55fa
commit 033e2b9038
2 changed files with 2 additions and 2 deletions

View File

@ -56,5 +56,5 @@ afterAll(() => {
test('run with default values', () => {
cp.execSync(`node ${cleanupPath}`, { env: process.env }).toString();
cp.spawnSync('node', [ `${cleanupPath}` ], { env: process.env }).toString();
})

View File

@ -74,7 +74,7 @@ test('run with all feature', () => {
process.env['INPUT_SONATYPESNAPSHOTS'] = 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);
expect(settingsStatus.isFile()).toBeTruthy();