snyk 1.1167.0 → 1.1168.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 +13 -8
- package/dist/cli/917.index.js.map +1 -1
- package/help/cli-commands/monitor.md +14 -2
- package/help/cli-commands/sbom.md +29 -3
- package/help/cli-commands/test.md +14 -2
- package/package.json +1 -1
- package/src/generated/sha256sums.txt +10 -10
- package/src/generated/version +1 -1
- package/wrapper_dist/generated/sha256sums.txt +10 -10
- package/wrapper_dist/generated/version +1 -1
package/dist/cli/917.index.js
CHANGED
|
@@ -4940,12 +4940,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
4940
4940
|
exports.getChecksum = exports.formatPolicyEngineFileName = exports.policyEngineVersion = void 0;
|
|
4941
4941
|
const os = __webpack_require__(12087);
|
|
4942
4942
|
const policyEngineChecksums = `
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4943
|
+
14b1b45e2cac3a57da0d8624d525fd384b7773fbc7538f0ca63f48582e8693b6 snyk-iac-test_0.45.0_Windows_arm64.exe
|
|
4944
|
+
44bc84d0c930522e6c229d14f54ca3a733c409ba91d322a30a3e6210d0417098 snyk-iac-test_0.45.0_Linux_arm64
|
|
4945
|
+
89ff65a595aac825844a25d47852389552ab5de77fc0329f19656c047a6eb939 snyk-iac-test_0.45.0_Linux_x86_64
|
|
4946
|
+
9a2439fc8225113d926b325b77c3c0569279f6e3eaf48bcf44e23d442411b92c snyk-iac-test_0.45.0_Darwin_arm64
|
|
4947
|
+
d2582f9bcc9ec48ca7a52fe1abaabe1039959c596060152737218579f9fe6924 snyk-iac-test_0.45.0_Darwin_x86_64
|
|
4948
|
+
da3dc1bd10c8d86d81053b7934a76f0e556966a8ea79561cb3bbfdb426b7b01e snyk-iac-test_0.45.0_Windows_x86_64.exe
|
|
4949
4949
|
`;
|
|
4950
4950
|
exports.policyEngineVersion = getPolicyEngineVersion();
|
|
4951
4951
|
function formatPolicyEngineFileName(releaseVersion) {
|
|
@@ -5659,7 +5659,8 @@ const config_1 = __webpack_require__(25425);
|
|
|
5659
5659
|
const api_token_1 = __webpack_require__(95181);
|
|
5660
5660
|
const env_paths_1 = __webpack_require__(21766);
|
|
5661
5661
|
const env_utils_1 = __webpack_require__(96771);
|
|
5662
|
-
const debug = newDebug('snyk
|
|
5662
|
+
const debug = newDebug('snyk:iac');
|
|
5663
|
+
const debugOutput = newDebug('snyk:iac:output');
|
|
5663
5664
|
exports.systemCachePath = (_a = config_1.default.CACHE_PATH) !== null && _a !== void 0 ? _a : env_paths_1.default('snyk').cache;
|
|
5664
5665
|
async function scan(options, policyEnginePath, rulesBundlePath, rulesClientURL) {
|
|
5665
5666
|
const { tempOutput: outputPath, tempDir: tempDirPath, tempPolicy: tempPolicyPath, } = await createTemporaryFiles(options);
|
|
@@ -5695,7 +5696,11 @@ async function scanWithConfig(options, policyEnginePath, rulesBundlePath, rulesC
|
|
|
5695
5696
|
if (child.error) {
|
|
5696
5697
|
throw new ScanError(`spawning process: ${child.error}`);
|
|
5697
5698
|
}
|
|
5698
|
-
|
|
5699
|
+
const results = await readJson(outputPath);
|
|
5700
|
+
if (debugOutput.enabled) {
|
|
5701
|
+
debugOutput('snyk-iac-test output:\n', JSON.stringify(results, null, 2));
|
|
5702
|
+
}
|
|
5703
|
+
return results_1.mapSnykIacTestOutputToTestOutput(results);
|
|
5699
5704
|
}
|
|
5700
5705
|
async function readJson(path) {
|
|
5701
5706
|
try {
|