snyk 1.756.0 → 1.757.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/917.index.js +4 -3
- package/dist/cli/917.index.js.map +1 -1
- package/help/commands-docs/_EXAMPLES.md +9 -0
- package/help/commands-docs/config.md +9 -0
- package/help/commands-docs/iac-examples.md +3 -0
- package/help/commands-docs/iac.md +8 -0
- package/help/commands-man/snyk-auth.1 +1 -1
- package/help/commands-man/snyk-code.1 +1 -1
- package/help/commands-man/snyk-config.1 +10 -1
- package/help/commands-man/snyk-container.1 +1 -1
- package/help/commands-man/snyk-help.1 +1 -1
- package/help/commands-man/snyk-iac.1 +11 -1
- package/help/commands-man/snyk-ignore.1 +1 -1
- package/help/commands-man/snyk-monitor.1 +1 -1
- package/help/commands-man/snyk-policy.1 +1 -1
- package/help/commands-man/snyk-protect.1 +1 -1
- package/help/commands-man/snyk-test.1 +1 -1
- package/help/commands-man/snyk-wizard.1 +1 -1
- package/help/commands-man/snyk-woof.1 +1 -1
- package/help/commands-man/snyk.1 +10 -1
- package/help/commands-md/snyk-config.md +9 -0
- package/help/commands-md/snyk-iac.md +11 -0
- package/help/commands-md/snyk.md +9 -0
- package/help/commands-txt/snyk-auth.txt +58 -58
- package/help/commands-txt/snyk-code.txt +65 -65
- package/help/commands-txt/snyk-config.txt +86 -74
- package/help/commands-txt/snyk-container.txt +74 -74
- package/help/commands-txt/snyk-help.txt +52 -52
- package/help/commands-txt/snyk-iac.txt +109 -95
- package/help/commands-txt/snyk-ignore.txt +72 -72
- package/help/commands-txt/snyk-monitor.txt +199 -199
- package/help/commands-txt/snyk-policy.txt +53 -53
- package/help/commands-txt/snyk-protect.txt +53 -53
- package/help/commands-txt/snyk-test.txt +199 -199
- package/help/commands-txt/snyk-wizard.txt +54 -54
- package/help/commands-txt/snyk-woof.txt +53 -53
- package/help/commands-txt/snyk.txt +236 -222
- package/package.json +2 -2
package/dist/cli/917.index.js
CHANGED
|
@@ -664,6 +664,7 @@ const policy_1 = __webpack_require__(25476);
|
|
|
664
664
|
const measurable_methods_1 = __webpack_require__(78272);
|
|
665
665
|
const feature_flags_1 = __webpack_require__(63011);
|
|
666
666
|
const assert_iac_options_flag_1 = __webpack_require__(68590);
|
|
667
|
+
const user_config_1 = __webpack_require__(28137);
|
|
667
668
|
const config_1 = __webpack_require__(22541);
|
|
668
669
|
const policy_2 = __webpack_require__(32615);
|
|
669
670
|
const errors_1 = __webpack_require__(55191);
|
|
@@ -678,7 +679,7 @@ async function test(pathToScan, options) {
|
|
|
678
679
|
const iacOrgSettings = await measurable_methods_1.getIacOrgSettings(org);
|
|
679
680
|
const customRulesPath = await customRulesPathForOrg(options.rules, org);
|
|
680
681
|
const OCIRegistryURL = (((_b = iacOrgSettings.customRules) === null || _b === void 0 ? void 0 : _b.isEnabled) && ((_c = iacOrgSettings.customRules) === null || _c === void 0 ? void 0 : _c.ociRegistryURL)) ||
|
|
681
|
-
|
|
682
|
+
user_config_1.config.get('oci-registry-url');
|
|
682
683
|
if (OCIRegistryURL && customRulesPath) {
|
|
683
684
|
throw new FailedToExecuteCustomRulesError();
|
|
684
685
|
}
|
|
@@ -687,8 +688,8 @@ async function test(pathToScan, options) {
|
|
|
687
688
|
throw new oci_pull_1.InvalidRemoteRegistryURLError();
|
|
688
689
|
}
|
|
689
690
|
const URLComponents = oci_pull_1.extractURLComponents(OCIRegistryURL);
|
|
690
|
-
const username =
|
|
691
|
-
const password =
|
|
691
|
+
const username = user_config_1.config.get('oci-registry-username');
|
|
692
|
+
const password = user_config_1.config.get('oci-registry-password');
|
|
692
693
|
const opt = {
|
|
693
694
|
username,
|
|
694
695
|
password,
|