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.
- package/dist/cli/917.index.js +12 -7
- package/dist/cli/917.index.js.map +1 -1
- package/dist/cli/commands/test/iac/local-execution/types.d.ts +2 -1
- package/dist/cli/index.js +1 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/lib/iac/test/v2/setup/local-cache/policy-engine/constants/index.d.ts +1 -1
- package/dist/lib/iac/test/v2/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/cli/917.index.js
CHANGED
|
@@ -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.
|
|
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 = `
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
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/);
|