snyk 1.1022.0 → 1.1023.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 +2 -2
- package/dist/cli/917.index.js.map +1 -1
- package/dist/lib/iac/test/v2/scan/results.d.ts +1 -0
- package/help/cli-commands/README.md +1 -1
- package/help/cli-commands/code-test.md +78 -0
- package/help/cli-commands/code.md +4 -67
- package/help/cli-commands/container-monitor.md +12 -2
- package/help/cli-commands/container-test.md +11 -3
- package/help/cli-commands/iac-describe.md +1 -1
- package/help/cli-commands/iac-test.md +17 -5
- package/help/cli-commands/ignore.md +1 -1
- package/help/cli-commands/monitor.md +5 -9
- package/help/cli-commands/test.md +9 -15
- package/package.json +1 -1
package/dist/cli/917.index.js
CHANGED
|
@@ -3171,7 +3171,7 @@ function formatSnykIacTestTestData(snykIacTestScanResult, projectName, orgName)
|
|
|
3171
3171
|
const filesWithIssuesCount = countFilesWithIssues(snykIacTestScanResult);
|
|
3172
3172
|
const filesWithoutIssuesCount = allFilesCount - filesWithIssuesCount;
|
|
3173
3173
|
const ignores = snykIacTestScanResult
|
|
3174
|
-
? snykIacTestScanResult.
|
|
3174
|
+
? snykIacTestScanResult.metadata.ignoredCount
|
|
3175
3175
|
: 0;
|
|
3176
3176
|
let contextSuppressedIssueCount;
|
|
3177
3177
|
const suppressedResults = (_a = snykIacTestScanResult === null || snykIacTestScanResult === void 0 ? void 0 : snykIacTestScanResult.scanAnalytics) === null || _a === void 0 ? void 0 : _a.suppressedResults;
|
|
@@ -4448,7 +4448,7 @@ function computeIacAnalytics(testOutput) {
|
|
|
4448
4448
|
iacType,
|
|
4449
4449
|
packageManager: Object.keys(iacType),
|
|
4450
4450
|
iacIssuesCount: ((_b = (_a = testOutput.results) === null || _a === void 0 ? void 0 : _a.vulnerabilities) === null || _b === void 0 ? void 0 : _b.length) || 0,
|
|
4451
|
-
iacIgnoredIssuesCount: ((_c = testOutput.results) === null || _c === void 0 ? void 0 : _c.
|
|
4451
|
+
iacIgnoredIssuesCount: ((_c = testOutput.results) === null || _c === void 0 ? void 0 : _c.metadata.ignoredCount) || 0,
|
|
4452
4452
|
iacFilesCount: Object.values(iacType).reduce((acc, packageManagerAnalytics) => acc + packageManagerAnalytics.count, 0),
|
|
4453
4453
|
iacResourcesCount: ((_e = (_d = testOutput.results) === null || _d === void 0 ? void 0 : _d.resources) === null || _e === void 0 ? void 0 : _e.length) || 0,
|
|
4454
4454
|
iacErrorCodes: [...new Set((_f = testOutput.errors) === null || _f === void 0 ? void 0 : _f.map((error) => error.code))] || [],
|