snyk 1.903.0 → 1.904.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/784.index.js +3 -6
- package/dist/cli/784.index.js.map +1 -1
- package/dist/cli/917.index.js +20 -2
- package/dist/cli/917.index.js.map +1 -1
- package/dist/cli/commands/test/iac/local-execution/types.d.ts +1 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/lib/formatters/iac-output/v2/index.d.ts +1 -1
- package/help/cli-commands/config.md +1 -1
- package/help/cli-commands/container.md +10 -8
- package/help/cli-commands/iac-describe.md +8 -6
- package/help/cli-commands/iac-test.md +14 -6
- package/help/cli-commands/ignore.md +2 -2
- package/help/cli-commands/log4shell.md +4 -2
- package/help/cli-commands/monitor.md +20 -12
- package/help/cli-commands/test.md +19 -11
- package/package.json +1 -1
package/dist/cli/784.index.js
CHANGED
|
@@ -1807,7 +1807,7 @@ var v2_1 = __webpack_require__(49041);
|
|
|
1807
1807
|
Object.defineProperty(exports, "formatIacTestSummary", ({ enumerable: true, get: function () { return v2_1.formatIacTestSummary; } }));
|
|
1808
1808
|
function getIacDisplayedOutput(iacTest, testedInfoText, meta, prefix, isNewIacOutputSupported) {
|
|
1809
1809
|
return isNewIacOutputSupported
|
|
1810
|
-
? v2.getIacDisplayedOutput(iacTest,
|
|
1810
|
+
? v2.getIacDisplayedOutput(iacTest, prefix)
|
|
1811
1811
|
: v1.getIacDisplayedOutput(iacTest, testedInfoText, meta, prefix);
|
|
1812
1812
|
}
|
|
1813
1813
|
exports.getIacDisplayedOutput = getIacDisplayedOutput;
|
|
@@ -2151,7 +2151,7 @@ function formatIacIssue(issue, isNew, path) {
|
|
|
2151
2151
|
introducedBy +
|
|
2152
2152
|
'\n');
|
|
2153
2153
|
}
|
|
2154
|
-
function getIacDisplayedOutput(iacTest,
|
|
2154
|
+
function getIacDisplayedOutput(iacTest, prefix) {
|
|
2155
2155
|
const issuesTextArray = [
|
|
2156
2156
|
chalk_1.default.bold.white('\nInfrastructure as code issues:'),
|
|
2157
2157
|
];
|
|
@@ -2168,10 +2168,7 @@ function getIacDisplayedOutput(iacTest, testedInfoText, meta, prefix) {
|
|
|
2168
2168
|
if (issuesTextArray.length > 0) {
|
|
2169
2169
|
issuesInfoOutput.push(issuesTextArray.join('\n'));
|
|
2170
2170
|
}
|
|
2171
|
-
|
|
2172
|
-
const vulnCountText = `found ${issues.length} issues`;
|
|
2173
|
-
const summary = testedInfoText + ', ' + chalk_1.default.red.bold(vulnCountText);
|
|
2174
|
-
body = body + '\n\n' + summary;
|
|
2171
|
+
const body = issuesInfoOutput.join('\n\n');
|
|
2175
2172
|
return prefix + body;
|
|
2176
2173
|
}
|
|
2177
2174
|
exports.getIacDisplayedOutput = getIacDisplayedOutput;
|