@coana-tech/cli 14.0.10 → 14.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cli.js +7 -3
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -95702,7 +95702,7 @@ var init_constants2 = __esm({
95702
95702
  });
95703
95703
 
95704
95704
  // ../other-modules-communicator/src/constants.ts
95705
- var import_lodash6, import_path19, PACKAGE_MANAGER_SCRIPT_PATH, REACHABILITY_ANALYZERS_SCRIPT_PATH;
95705
+ var import_lodash6, import_path19, PACKAGE_MANAGER_SCRIPT_PATH, REACHABILITY_ANALYZERS_SCRIPT_PATH, DOCKER_ENV_WHITE_LIST;
95706
95706
  var init_constants3 = __esm({
95707
95707
  "../other-modules-communicator/src/constants.ts"() {
95708
95708
  "use strict";
@@ -95715,6 +95715,7 @@ var init_constants3 = __esm({
95715
95715
  REACHABILITY_ANALYZERS_SCRIPT_PATH = (0, import_lodash6.once)(() => {
95716
95716
  return process.env.REACHABILITY_ANALYZERS_SCRIPT_PATH ?? (0, import_path19.resolve)(COANA_ROOT2(), "packages", "reachability-analyzers", "dist", "reachability-analyzers-cli.js");
95717
95717
  });
95718
+ DOCKER_ENV_WHITE_LIST = ["GITHUB_", "GH_", "SSH_", "_PASSWORD", "_USER"];
95718
95719
  }
95719
95720
  });
95720
95721
 
@@ -99474,10 +99475,13 @@ var init_other_modules_communicator = __esm({
99474
99475
  }
99475
99476
  async runInDocker(ecosystem, image, entryPoint, commandName, args2, subprojectPath, tmpDir, env = process.env) {
99476
99477
  if (!await pullDockerImage(image)) return false;
99478
+ const envArgs = Object.keys(process.env).filter((key) => DOCKER_ENV_WHITE_LIST.some((whiteListedKey) => key.includes(whiteListedKey))).flatMap((key) => ["-e", key]);
99479
+ if (this.options.reportId) envArgs.push("-e", `COANA_REPORT_ID="${this.options.reportId}"`);
99480
+ if (this.options.apiKey) envArgs.push("-e", `COANA_API_KEY="${this.options.apiKey}"`);
99477
99481
  const cmd = cmdt`docker run --pull=never --rm -v ${this.rootWorkingDir}:/project -v ${tmpDir}:${tmpDir}
99478
99482
  -v=${this.options.coanaLogPath}:${this.options.coanaLogPath}
99479
99483
  ${await getEcosystemSpecificDockerArgs(ecosystem)}
99480
- ${image} ${entryPoint} ${commandName} ${args2}`;
99484
+ ${envArgs} ${image} ${entryPoint} ${commandName} ${args2}`;
99481
99485
  return execPipeAndLogOnFailure(cmd, subprojectPath, { env });
99482
99486
  }
99483
99487
  async getWorkspacePaths(packageManagerName, subprojectPath) {
@@ -193989,7 +193993,7 @@ var require_version = __commonJS({
193989
193993
  "use strict";
193990
193994
  Object.defineProperty(exports2, "__esModule", { value: true });
193991
193995
  exports2.version = void 0;
193992
- exports2.version = "14.0.10";
193996
+ exports2.version = "14.0.11";
193993
193997
  }
193994
193998
  });
193995
193999
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.0.10",
3
+ "version": "14.0.11",
4
4
  "description": "Coana CLI",
5
5
  "bin": {
6
6
  "@coana-tech/cli": "./cli.js"