snyk 1.1287.0 → 1.1288.1
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
|
@@ -3455,11 +3455,7 @@ function extractResolve(vulnerability) {
|
|
|
3455
3455
|
: vulnerability.remediation.substring(0, newLineIdx);
|
|
3456
3456
|
}
|
|
3457
3457
|
function formatCloudConfigPath(vulnerability) {
|
|
3458
|
-
|
|
3459
|
-
if (vulnerability.resource.path) {
|
|
3460
|
-
cloudConfigPath.push(...vulnerability.resource.path);
|
|
3461
|
-
}
|
|
3462
|
-
return cloudConfigPath;
|
|
3458
|
+
return vulnerability.resource.formattedPath.split('.');
|
|
3463
3459
|
}
|
|
3464
3460
|
|
|
3465
3461
|
|
|
@@ -4858,6 +4854,7 @@ function vulnerabilitiesToResult(testOutput, projectName, file, vulnerabilities)
|
|
|
4858
4854
|
}
|
|
4859
4855
|
function vulnerabilitiesToIacIssues(vulnerabilities) {
|
|
4860
4856
|
return vulnerabilities.map((v) => {
|
|
4857
|
+
var _a;
|
|
4861
4858
|
const resolve = extractResolve(v);
|
|
4862
4859
|
return {
|
|
4863
4860
|
severity: v.severity,
|
|
@@ -4883,7 +4880,7 @@ function vulnerabilitiesToIacIssues(vulnerabilities) {
|
|
|
4883
4880
|
lineNumber: v.resource.line || -1,
|
|
4884
4881
|
documentation: v.rule.documentation,
|
|
4885
4882
|
isGeneratedByCustomRule: !!v.rule.isGeneratedByCustomRule,
|
|
4886
|
-
path: v.resource.
|
|
4883
|
+
path: ((_a = v === null || v === void 0 ? void 0 : v.resource) === null || _a === void 0 ? void 0 : _a.formattedPath.split('.')) || [],
|
|
4887
4884
|
compliance: [],
|
|
4888
4885
|
description: v.rule.description,
|
|
4889
4886
|
};
|