snyk 1.983.0 → 1.984.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.
@@ -2337,6 +2337,7 @@ async function prepareTestConfig(paths, options) {
2337
2337
  userPolicyEnginePath: config_1.default.IAC_POLICY_ENGINE_PATH,
2338
2338
  severityThreshold: options.severityThreshold,
2339
2339
  attributes,
2340
+ report: !!options.report,
2340
2341
  };
2341
2342
  }
2342
2343
  function parseAttributes(options) {
@@ -3382,6 +3383,7 @@ const snykIacTestErrorsUserMessages = {
3382
3383
  FailedToCompile: defaultUserMessage,
3383
3384
  UnableToReadPath: 'Unable to read path',
3384
3385
  NoLoadableInput: "The Snyk CLI couldn't find any valid IaC configuration files to scan",
3386
+ FailedToShareResults: 'Failed to upload the test results with the platform',
3385
3387
  };
3386
3388
  function getErrorUserMessage(code) {
3387
3389
  if (code < 2000 || code >= 3000) {
@@ -3947,6 +3949,9 @@ function processFlags(options, rulesBundlePath, configPath) {
3947
3949
  if ((_c = options.attributes) === null || _c === void 0 ? void 0 : _c.lifecycle) {
3948
3950
  flags.push('-project-lifecycle', options.attributes.lifecycle.join(','));
3949
3951
  }
3952
+ if (options.report) {
3953
+ flags.push('-report');
3954
+ }
3950
3955
  return flags;
3951
3956
  }
3952
3957
  function createConfig(options) {
@@ -4041,7 +4046,7 @@ const utils_1 = __webpack_require__(92040);
4041
4046
  /**
4042
4047
  * The Policy Engine release version associated with this Snyk CLI version.
4043
4048
  */
4044
- exports.policyEngineReleaseVersion = '0.14.0';
4049
+ exports.policyEngineReleaseVersion = '0.15.0';
4045
4050
  /**
4046
4051
  * The Policy Engine executable's file name.
4047
4052
  */
@@ -4075,12 +4080,12 @@ function formatPolicyEngineFileName(releaseVersion) {
4075
4080
  }
4076
4081
  exports.formatPolicyEngineFileName = formatPolicyEngineFileName;
4077
4082
  // this const is not placed in `index.ts` to avoid circular dependencies
4078
- const policyEngineChecksums = `09503affce0653bd3e1d7f0be729f4e72afef48cda5e7cfb0659ccf4e12f6145 snyk-iac-test_0.14.0_Darwin_arm64
4079
- 2d415c7718280180db83786f120c666e82ae686df7f2c3df6410a39216245106 snyk-iac-test_0.14.0_Windows_x86_64.exe
4080
- 43286fb25c8f99842c89e906a3791f3668f04d336dad762a349398a8a7e8431b snyk-iac-test_0.14.0_Linux_x86_64
4081
- 7ae1033a948f8868d6643759a3ee46bf076fbd2cf0bd28f6c687a9099dbcde04 snyk-iac-test_0.14.0_Darwin_x86_64
4082
- 92913a9d3a48c196f29d361d7f3bb79759f558793c37292fe5dfa671f2f18e39 snyk-iac-test_0.14.0_Linux_arm64
4083
- a228cde202ac394e7b5180a1dcd33bc5d8c7053e4c8bf3584dd0a414ff7acc74 snyk-iac-test_0.14.0_Windows_arm64.exe
4083
+ const policyEngineChecksums = `0a2566f393a963c4a863e774fb4fa055ecc5fd018407f4c92213085592693eb9 snyk-iac-test_0.15.0_Linux_x86_64
4084
+ 5d46d756f849704cd811707e552dd9a9e047b01ea6ea43ce424ddd41936b295f snyk-iac-test_0.15.0_Linux_arm64
4085
+ 7c2e881766c26711cd51f5027ff0f84ffae02d419a6489fd219092e5a2b3253d snyk-iac-test_0.15.0_Windows_x86_64.exe
4086
+ 8e1f0c5ba1e0c4b3344218e1373b81a48c25f7d58e755e3032b7f995e4f0a6f8 snyk-iac-test_0.15.0_Windows_arm64.exe
4087
+ c456b9e7b0eb9c73e406cb955e5dfb6b0adc3cee92b3a17c23ec5f23f37f9eb4 snyk-iac-test_0.15.0_Darwin_x86_64
4088
+ d6d6e9b0f722b125e7be5e21a03104babad6949bb7ca6f7e2b19cc044fda9169 snyk-iac-test_0.15.0_Darwin_arm64
4084
4089
  `;
4085
4090
  function getChecksum(policyEngineFileName) {
4086
4091
  const lines = policyEngineChecksums.split(/\r?\n/);