snyk 1.1005.0 → 1.1006.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.
@@ -1909,7 +1909,7 @@ exports.getProjectNameFromGitUrl = getProjectNameFromGitUrl;
1909
1909
  "use strict";
1910
1910
 
1911
1911
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1912
- exports.shouldPrintShareResultsTip = exports.buildShareResultsSummary = exports.buildOutput = exports.printHeader = exports.buildSpinner = void 0;
1912
+ exports.shouldPrintShareResultsTip = exports.buildShareResultsSummaryV2 = exports.buildShareResultsSummary = exports.buildOutput = exports.printHeader = exports.buildSpinner = void 0;
1913
1913
  const os_1 = __webpack_require__(12087);
1914
1914
  const types_1 = __webpack_require__(55246);
1915
1915
  const iac_test_result_1 = __webpack_require__(46816);
@@ -1919,6 +1919,7 @@ const assert_iac_options_flag_1 = __webpack_require__(33111);
1919
1919
  const ora = __webpack_require__(63395);
1920
1920
  const errors_1 = __webpack_require__(55191);
1921
1921
  const text_2 = __webpack_require__(86166);
1922
+ const share_results_1 = __webpack_require__(93664);
1922
1923
  const SEPARATOR = '\n-------------------------------------------------------\n';
1923
1924
  function buildSpinner(options) {
1924
1925
  if (text_1.shouldLogUserMessages(options)) {
@@ -2070,6 +2071,16 @@ function buildShareResultsSummary({ orgName, projectName, options, isIacCustomRu
2070
2071
  return response;
2071
2072
  }
2072
2073
  exports.buildShareResultsSummary = buildShareResultsSummary;
2074
+ function buildShareResultsSummaryV2({ orgName, projectName, options, isIacCustomRulesEntitlementEnabled, isIacShareCliResultsCustomRulesSupported, }) {
2075
+ let response = '';
2076
+ response +=
2077
+ SEPARATOR + os_1.EOL + share_results_1.formatShareResultsOutputV2(orgName, projectName);
2078
+ if (shouldPrintShareCustomRulesDisclaimer(options, isIacCustomRulesEntitlementEnabled, isIacShareCliResultsCustomRulesSupported)) {
2079
+ response += os_1.EOL + os_1.EOL + text_2.shareCustomRulesDisclaimer;
2080
+ }
2081
+ return response;
2082
+ }
2083
+ exports.buildShareResultsSummaryV2 = buildShareResultsSummaryV2;
2073
2084
  function shouldPrintShareResultsTip(options) {
2074
2085
  return text_1.shouldLogUserMessages(options) && !options.report;
2075
2086
  }
@@ -3446,7 +3457,7 @@ function isValidLineNumber(lineNumber) {
3446
3457
  "use strict";
3447
3458
 
3448
3459
  Object.defineProperty(exports, "__esModule", ({ value: true }));
3449
- exports.shareCustomRulesDisclaimer = exports.shareResultsTip = exports.formatShareResultsOutput = void 0;
3460
+ exports.shareCustomRulesDisclaimer = exports.shareResultsTip = exports.formatShareResultsOutputV2 = exports.formatShareResultsOutput = void 0;
3450
3461
  const config_1 = __webpack_require__(25425);
3451
3462
  const os_1 = __webpack_require__(12087);
3452
3463
  const utils_1 = __webpack_require__(9176);
@@ -3463,6 +3474,15 @@ function formatShareResultsOutput(orgName, projectName) {
3463
3474
  utils_1.colors.title(projectName));
3464
3475
  }
3465
3476
  exports.formatShareResultsOutput = formatShareResultsOutput;
3477
+ function formatShareResultsOutputV2(orgName, projectName) {
3478
+ return (utils_1.colors.title('Report Complete') +
3479
+ os_1.EOL +
3480
+ os_1.EOL +
3481
+ utils_1.contentPadding +
3482
+ 'Your test results are available at: ' +
3483
+ utils_1.colors.title(`${config_1.default.ROOT}/org/${orgName}/cloud/issues?environment_name=${encodeURIComponent(projectName)}`));
3484
+ }
3485
+ exports.formatShareResultsOutputV2 = formatShareResultsOutputV2;
3466
3486
  exports.shareResultsTip = utils_1.colors.title('Tip') +
3467
3487
  os_1.EOL +
3468
3488
  os_1.EOL +
@@ -4375,7 +4395,7 @@ const snykIacTestErrorsUserMessages = {
4375
4395
  NoLoadableInput: "The Snyk CLI couldn't find any valid IaC configuration files to scan",
4376
4396
  FailedToMakeResourcesResolvers: 'An error occurred preparing the requested cloud context. Please run the command again with the `-d` flag for more information.',
4377
4397
  ResourcesResolverError: 'An error occurred scanning cloud resources. Please run the command again with the `-d` flag for more information.',
4378
- FailedToShareResults: 'Failed to upload the test results with the platform',
4398
+ FailedToProcessResults: 'An error occurred while processing results. Please run the command again with the `-d` flag for more information.',
4379
4399
  };
4380
4400
  function getErrorUserMessage(code) {
4381
4401
  if (code < 2000 || code >= 3000) {
@@ -4679,12 +4699,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
4679
4699
  exports.getChecksum = exports.formatPolicyEngineFileName = exports.policyEngineVersion = void 0;
4680
4700
  const os = __webpack_require__(12087);
4681
4701
  const policyEngineChecksums = `
4682
- 16211f1b806a85127cad2f1165e39a679a82c6c3d0d6a0bc4fde196710280b73 snyk-iac-test_0.31.2_Linux_x86_64
4683
- 931a8eb829c912251ae1d47c7b729148dca2bd3c60a4c8b564f614aeeee9d7c9 snyk-iac-test_0.31.2_Darwin_x86_64
4684
- 9536c5b4b4bf6fef94dd110033311b4447857c43bb07d64f5d2bc498cb53366b snyk-iac-test_0.31.2_Windows_arm64.exe
4685
- cf24c3b562f5c4282c029510cf679cabb5fa2a96bbf207cdd57f42e960173fb4 snyk-iac-test_0.31.2_Darwin_arm64
4686
- d3bc0efa5e7eec34e9cd2f226e3686329e4a4f371e532851e4d10226e250505d snyk-iac-test_0.31.2_Linux_arm64
4687
- fcebb81c0745d8636d55ac9aa4582acbc38d93a496970d3069c19ab278b5ebb6 snyk-iac-test_0.31.2_Windows_x86_64.exe
4702
+ 287c2b8c97b2b6208264e5bf9dab3132c34355efdecf29974a84bd56e7e1654d snyk-iac-test_0.31.3_Darwin_x86_64
4703
+ 4cb497eac74ed543dde6935e5cc0519cffbcced6bfe9a98c697b125edfb75a2e snyk-iac-test_0.31.3_Linux_arm64
4704
+ 6059e32181c32f364757cb39204beea73c1ed4c477d5ae8fa8e970d5c792bb37 snyk-iac-test_0.31.3_Darwin_arm64
4705
+ 7767548480f2479205bdf3d792a66d43313717a471e1c300841504b63ae2581b snyk-iac-test_0.31.3_Windows_arm64.exe
4706
+ 8363ae002cf64f4bb0c65ddc2312d4c6b23098032983d61d8c4c439b705750ed snyk-iac-test_0.31.3_Windows_x86_64.exe
4707
+ e36cc18b60f7b41fccf5a097f685f437813b9183aa9c6fa97ea4c1fe36ac0e42 snyk-iac-test_0.31.3_Linux_x86_64
4688
4708
  `;
4689
4709
  exports.policyEngineVersion = getPolicyEngineVersion();
4690
4710
  function formatPolicyEngineFileName(releaseVersion) {
@@ -5173,7 +5193,7 @@ function buildTextOutput({ scanResult, projectName, orgSettings, options, }) {
5173
5193
  response += text_1.formatIacTestSummary(testData);
5174
5194
  response += os_1.EOL;
5175
5195
  if (options.report) {
5176
- response += output_1.buildShareResultsSummary({
5196
+ response += output_1.buildShareResultsSummaryV2({
5177
5197
  orgName: orgSettings.meta.org,
5178
5198
  projectName,
5179
5199
  options,