snyk 1.1001.0 → 1.1002.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
CHANGED
|
@@ -3176,6 +3176,13 @@ function formatSnykIacTestTestData(snykIacTestScanResult, projectName, orgName)
|
|
|
3176
3176
|
const ignores = snykIacTestScanResult
|
|
3177
3177
|
? snykIacTestScanResult.metadata.ignoredCount
|
|
3178
3178
|
: 0;
|
|
3179
|
+
let contextSuppressedIssueCount;
|
|
3180
|
+
const suppressedResults = snykIacTestScanResult === null || snykIacTestScanResult === void 0 ? void 0 : snykIacTestScanResult.scanAnalytics.suppressedResults;
|
|
3181
|
+
if (suppressedResults) {
|
|
3182
|
+
contextSuppressedIssueCount = Object.values(suppressedResults).reduce(function (count, resourcesForRuleId) {
|
|
3183
|
+
return (count += resourcesForRuleId.length);
|
|
3184
|
+
}, 0);
|
|
3185
|
+
}
|
|
3179
3186
|
return {
|
|
3180
3187
|
resultsBySeverity,
|
|
3181
3188
|
metadata: { projectName, orgName },
|
|
@@ -3185,6 +3192,7 @@ function formatSnykIacTestTestData(snykIacTestScanResult, projectName, orgName)
|
|
|
3185
3192
|
filesWithoutIssues: filesWithoutIssuesCount,
|
|
3186
3193
|
issues: totalIssues,
|
|
3187
3194
|
issuesBySeverity: issuesCountBySeverity,
|
|
3195
|
+
contextSuppressedIssues: contextSuppressedIssueCount,
|
|
3188
3196
|
},
|
|
3189
3197
|
};
|
|
3190
3198
|
}
|
|
@@ -3501,6 +3509,9 @@ function formatCountsSection(testCounts) {
|
|
|
3501
3509
|
countsSectionProperties.push(`${utils_1.colors.success.bold(theme_1.icon.VALID)} Files without issues: ${utils_1.colors.info.bold(`${testCounts.filesWithoutIssues}`)}`);
|
|
3502
3510
|
countsSectionProperties.push(`${utils_1.colors.failure.bold(theme_1.icon.ISSUE)} Files with issues: ${utils_1.colors.info.bold(`${testCounts.filesWithIssues}`)}`);
|
|
3503
3511
|
countsSectionProperties.push(`${INDENT}Ignored issues: ${utils_1.colors.info.bold(`${testCounts.ignores}`)}`);
|
|
3512
|
+
if (testCounts.contextSuppressedIssues) {
|
|
3513
|
+
countsSectionProperties.push(`${INDENT}Cloud context - suppressed issues: ${utils_1.colors.info.bold(`${testCounts.contextSuppressedIssues}`)}`);
|
|
3514
|
+
}
|
|
3504
3515
|
countsSectionProperties.push(`${INDENT}Total issues: ${utils_1.colors.info.bold(`${testCounts.issues}`)} [ ${utils_1.colors.severities.critical(`${testCounts.issuesBySeverity.critical} critical`)}, ${utils_1.colors.severities.high(`${testCounts.issuesBySeverity.high} high`)}, ${utils_1.colors.severities.medium(`${testCounts.issuesBySeverity.medium} medium`)}, ${utils_1.colors.severities.low(`${testCounts.issuesBySeverity.low} low`)} ]`);
|
|
3505
3516
|
return countsSectionProperties.join(os_1.EOL);
|
|
3506
3517
|
}
|
|
@@ -4660,12 +4671,12 @@ exports.policyEngineChecksum = utils_1.getChecksum(exports.policyEngineFileName)
|
|
|
4660
4671
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4661
4672
|
exports.getChecksum = exports.formatPolicyEngineFileName = exports.policyEngineVersion = void 0;
|
|
4662
4673
|
const os = __webpack_require__(12087);
|
|
4663
|
-
const policyEngineChecksums = `
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4674
|
+
const policyEngineChecksums = `1ab888458215d8ba45452117854adb95060d9dac45f4b602e2e34f500b7b8a3a snyk-iac-test_0.30.1_Linux_arm64
|
|
4675
|
+
85e181989cde63797095107c38772edb4cba75a8becd82aad9c609b4c273789b snyk-iac-test_0.30.1_Windows_arm64.exe
|
|
4676
|
+
8e4bb3f55d6332706485f278d194f09ef08f46db5516b1008db9c152c636ae24 snyk-iac-test_0.30.1_Windows_x86_64.exe
|
|
4677
|
+
ba478316de02fd69de4463edca221550d5f4eb962e514220b0a9d9a014d18128 snyk-iac-test_0.30.1_Darwin_arm64
|
|
4678
|
+
f218a8e8cc25024f7936947c091e9c9ad34c33178cd6558bdda906fc47c1a598 snyk-iac-test_0.30.1_Darwin_x86_64
|
|
4679
|
+
ff23fe190e2392ed4b42ee231171806c300bfe2b9983353497c9f1a195c5c499 snyk-iac-test_0.30.1_Linux_x86_64
|
|
4669
4680
|
`;
|
|
4670
4681
|
exports.policyEngineVersion = getPolicyEngineVersion();
|
|
4671
4682
|
function formatPolicyEngineFileName(releaseVersion) {
|