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.
- package/dist/cli/917.index.js +17 -7
- package/dist/cli/917.index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/917.index.js
CHANGED
|
@@ -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 = `
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
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:
|
|
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);
|