Skip to content

Commit

Permalink
Fix “the blunder of the century”
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 committed Oct 11, 2022
1 parent 30acbb8 commit daa7cde
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cml.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,10 @@ class CML {

async startRunner(opts = {}) {
const env = {};
const sensitive =
['_CML_RUNNER_SENSITIVE_ENV'] +
process.env._CML_RUNNER_SENSITIVE_ENV.split(':');
const sensitive = [
'_CML_RUNNER_SENSITIVE_ENV',
...process.env._CML_RUNNER_SENSITIVE_ENV.split(':')
];
for (const variable in process.env)
if (!sensitive.includes(variable)) env[variable] = process.env[variable];
return await this.getDriver().startRunner({ ...opts, env });
Expand Down

2 comments on commit daa7cde

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

Please sign in to comment.