snyk 1.1003.0 → 1.1004.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.
@@ -2266,6 +2266,10 @@ const keys = [
2266
2266
  // PolicyOptions
2267
2267
  'ignore-policy',
2268
2268
  'policy-path',
2269
+ 'report',
2270
+ 'remote-repo-url',
2271
+ 'target-name',
2272
+ 'target-reference',
2269
2273
  ];
2270
2274
  const allowed = new Set(keys);
2271
2275
  function assertIacV2Options(options) {
@@ -4671,12 +4675,13 @@ exports.policyEngineChecksum = utils_1.getChecksum(exports.policyEngineFileName)
4671
4675
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4672
4676
  exports.getChecksum = exports.formatPolicyEngineFileName = exports.policyEngineVersion = void 0;
4673
4677
  const os = __webpack_require__(12087);
4674
- const policyEngineChecksums = `1ab888458215d8ba45452117854adb95060d9dac45f4b602e2e34f500b7b8a3a snyk-iac-test_0.30.1_Linux_arm64
4675
- 85e181989cde63797095107c38772edb4cba75a8becd82aad9c609b4c273789b snyk-iac-test_0.30.1_Windows_arm64.exe
4676
- 8e4bb3f55d6332706485f278d194f09ef08f46db5516b1008db9c152c636ae24 snyk-iac-test_0.30.1_Windows_x86_64.exe
4677
- ba478316de02fd69de4463edca221550d5f4eb962e514220b0a9d9a014d18128 snyk-iac-test_0.30.1_Darwin_arm64
4678
- f218a8e8cc25024f7936947c091e9c9ad34c33178cd6558bdda906fc47c1a598 snyk-iac-test_0.30.1_Darwin_x86_64
4679
- ff23fe190e2392ed4b42ee231171806c300bfe2b9983353497c9f1a195c5c499 snyk-iac-test_0.30.1_Linux_x86_64
4678
+ const policyEngineChecksums = `
4679
+ 16211f1b806a85127cad2f1165e39a679a82c6c3d0d6a0bc4fde196710280b73 snyk-iac-test_0.31.2_Linux_x86_64
4680
+ 931a8eb829c912251ae1d47c7b729148dca2bd3c60a4c8b564f614aeeee9d7c9 snyk-iac-test_0.31.2_Darwin_x86_64
4681
+ 9536c5b4b4bf6fef94dd110033311b4447857c43bb07d64f5d2bc498cb53366b snyk-iac-test_0.31.2_Windows_arm64.exe
4682
+ cf24c3b562f5c4282c029510cf679cabb5fa2a96bbf207cdd57f42e960173fb4 snyk-iac-test_0.31.2_Darwin_arm64
4683
+ d3bc0efa5e7eec34e9cd2f226e3686329e4a4f371e532851e4d10226e250505d snyk-iac-test_0.31.2_Linux_arm64
4684
+ fcebb81c0745d8636d55ac9aa4582acbc38d93a496970d3069c19ab278b5ebb6 snyk-iac-test_0.31.2_Windows_x86_64.exe
4680
4685
  `;
4681
4686
  exports.policyEngineVersion = getPolicyEngineVersion();
4682
4687
  function formatPolicyEngineFileName(releaseVersion) {
@@ -5542,7 +5547,7 @@ function createTemporaryFiles(options) {
5542
5547
  const configData = JSON.stringify({
5543
5548
  org: options.orgSettings.meta.org,
5544
5549
  orgPublicId: options.orgSettings.meta.orgPublicId,
5545
- apiUrl: config_1.default.API,
5550
+ apiUrl: getApiUrl(),
5546
5551
  apiAuth: api_token_1.getAuthHeader(),
5547
5552
  allowAnalytics: analytics_1.allowAnalytics(),
5548
5553
  policy: options.policy,
@@ -5564,6 +5569,11 @@ function deleteTemporaryFiles(tempDirPath) {
5564
5569
  debug('unable to delete temporary directory', e);
5565
5570
  }
5566
5571
  }
5572
+ function getApiUrl() {
5573
+ const apiUrl = new URL(config_1.default.API_REST_URL);
5574
+ apiUrl.pathname = '';
5575
+ return apiUrl.toString();
5576
+ }
5567
5577
  class ScanError extends errors_1.CustomError {
5568
5578
  constructor(message) {
5569
5579
  super(message);