From 82bfc29436cc20636341bbf3f24b5912c696628c Mon Sep 17 00:00:00 2001 From: satyamchaurasiapersistent <102941840+satyamchaurasiapersistent@users.noreply.github.com> Date: Fri, 26 Jul 2024 12:16:32 +0530 Subject: [PATCH] CXFLW-1230 add vulnerability summary (#1373) * Adding new version * Added code for vulnerability Summary for PDF. --------- Co-authored-by: Satyam Chaurasia --- .../checkmarx/flow/service/AbstractVulnerabilityScanner.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/checkmarx/flow/service/AbstractVulnerabilityScanner.java b/src/main/java/com/checkmarx/flow/service/AbstractVulnerabilityScanner.java index a8abdaf4a..5c47ae858 100644 --- a/src/main/java/com/checkmarx/flow/service/AbstractVulnerabilityScanner.java +++ b/src/main/java/com/checkmarx/flow/service/AbstractVulnerabilityScanner.java @@ -17,8 +17,10 @@ import com.checkmarx.sdk.dto.ScanResults; import com.checkmarx.sdk.dto.cx.CxProject; import com.checkmarx.sdk.dto.cx.CxScanParams; +import com.checkmarx.sdk.dto.cx.CxScanSummary; import com.checkmarx.sdk.exception.CheckmarxException; +import com.checkmarx.sdk.service.CxService; import com.checkmarx.sdk.service.scanner.ILegacyClient; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -414,6 +416,9 @@ private ScanResults scanLocalPathPDF(ScanRequest request, String path) throws Ex ScanDetails details = executeCxScan(request, zipFile); results = getScanResultsPDF(request, details.getProjectId(), details.getScanId()); log.debug("Deleting temp file {}", zipFile.getPath()); + + + Files.deleteIfExists(zipFile.toPath()); } catch (IOException e) { log.error("Error occurred while attempting to zip path {}", path, e);