snyk 1.1035.0 → 1.1037.0
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.
package/dist/cli/895.index.js
CHANGED
|
@@ -454,8 +454,8 @@ const service_mappings_1 = __webpack_require__(16228);
|
|
|
454
454
|
const drift_1 = __webpack_require__(26445);
|
|
455
455
|
const debugLib = __webpack_require__(15158);
|
|
456
456
|
const request_1 = __webpack_require__(52050);
|
|
457
|
-
const path = __webpack_require__(85622);
|
|
458
457
|
const child_process = __webpack_require__(63129);
|
|
458
|
+
const path = __webpack_require__(85622);
|
|
459
459
|
const fs = __webpack_require__(35747);
|
|
460
460
|
const os = __webpack_require__(12087);
|
|
461
461
|
const crypto = __webpack_require__(76417);
|
|
@@ -611,9 +611,20 @@ exports.runDriftCTL = async ({ options, driftIgnore, input, stdio, }) => {
|
|
|
611
611
|
stdio = ['pipe', 'pipe', 'inherit'];
|
|
612
612
|
}
|
|
613
613
|
debug('running driftctl %s ', args.join(' '));
|
|
614
|
+
const dctl_env = { ...process.env, DCTL_IS_SNYK: 'true' };
|
|
615
|
+
// WARN: We are restoring system en proxy because snyk cli override them but the proxy uses untrusted certs
|
|
616
|
+
if (process.env.SNYK_SYSTEM_HTTP_PROXY != undefined) {
|
|
617
|
+
dctl_env.HTTP_PROXY = process.env.SNYK_SYSTEM_HTTP_PROXY;
|
|
618
|
+
}
|
|
619
|
+
if (process.env.SNYK_SYSTEM_HTTPS_PROXY != undefined) {
|
|
620
|
+
dctl_env.HTTPS_PROXY = process.env.SNYK_SYSTEM_HTTPS_PROXY;
|
|
621
|
+
}
|
|
622
|
+
if (process.env.SNYK_NO_PROXY != undefined) {
|
|
623
|
+
dctl_env.NO_PROXY = process.env.SNYK_SYSTEM_NO_PROXY;
|
|
624
|
+
}
|
|
614
625
|
const p = child_process.spawn(path, args, {
|
|
615
626
|
stdio,
|
|
616
|
-
env:
|
|
627
|
+
env: dctl_env,
|
|
617
628
|
});
|
|
618
629
|
let stdout = '';
|
|
619
630
|
return new Promise((resolve, reject) => {
|