Skip to content

Commit 7ceeaf0

Browse files
committed
Restrict runner ENV access
1 parent 68ddbe4 commit 7ceeaf0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/drivers/github.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ class Github {
265265
);
266266

267267
return spawn(resolve(workdir, 'run.sh'), {
268-
shell: true
268+
shell: true,
269+
env: {}
269270
});
270271
} catch (err) {
271272
throw new Error(`Failed preparing GitHub runner: ${err.message}`);

src/drivers/gitlab.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class Gitlab {
204204
--docker-runtime "${gpu ? 'nvidia' : ''}" \
205205
${single ? '--max-builds 1' : ''}`;
206206

207-
return spawn(command, { shell: true });
207+
return spawn(command, { shell: true, env: {} });
208208
} catch (err) {
209209
throw new Error(`Failed preparing Gitlab runner: ${err.message}`);
210210
}

0 commit comments

Comments
 (0)