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.
Files changed (38) hide show
  1. package/dist/cli/917.index.js +4 -3
  2. package/dist/cli/917.index.js.map +1 -1
  3. package/help/commands-docs/_EXAMPLES.md +9 -0
  4. package/help/commands-docs/config.md +9 -0
  5. package/help/commands-docs/iac-examples.md +3 -0
  6. package/help/commands-docs/iac.md +8 -0
  7. package/help/commands-man/snyk-auth.1 +1 -1
  8. package/help/commands-man/snyk-code.1 +1 -1
  9. package/help/commands-man/snyk-config.1 +10 -1
  10. package/help/commands-man/snyk-container.1 +1 -1
  11. package/help/commands-man/snyk-help.1 +1 -1
  12. package/help/commands-man/snyk-iac.1 +11 -1
  13. package/help/commands-man/snyk-ignore.1 +1 -1
  14. package/help/commands-man/snyk-monitor.1 +1 -1
  15. package/help/commands-man/snyk-policy.1 +1 -1
  16. package/help/commands-man/snyk-protect.1 +1 -1
  17. package/help/commands-man/snyk-test.1 +1 -1
  18. package/help/commands-man/snyk-wizard.1 +1 -1
  19. package/help/commands-man/snyk-woof.1 +1 -1
  20. package/help/commands-man/snyk.1 +10 -1
  21. package/help/commands-md/snyk-config.md +9 -0
  22. package/help/commands-md/snyk-iac.md +11 -0
  23. package/help/commands-md/snyk.md +9 -0
  24. package/help/commands-txt/snyk-auth.txt +58 -58
  25. package/help/commands-txt/snyk-code.txt +65 -65
  26. package/help/commands-txt/snyk-config.txt +86 -74
  27. package/help/commands-txt/snyk-container.txt +74 -74
  28. package/help/commands-txt/snyk-help.txt +52 -52
  29. package/help/commands-txt/snyk-iac.txt +109 -95
  30. package/help/commands-txt/snyk-ignore.txt +72 -72
  31. package/help/commands-txt/snyk-monitor.txt +199 -199
  32. package/help/commands-txt/snyk-policy.txt +53 -53
  33. package/help/commands-txt/snyk-protect.txt +53 -53
  34. package/help/commands-txt/snyk-test.txt +199 -199
  35. package/help/commands-txt/snyk-wizard.txt +54 -54
  36. package/help/commands-txt/snyk-woof.txt +53 -53
  37. package/help/commands-txt/snyk.txt +236 -222
  38. package/package.json +2 -2
@@ -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
- process.env.OCI_REGISTRY_URL;
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 = process.env.OCI_REGISTRY_USERNAME;
691
- const password = process.env.OCI_REGISTRY_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,