Skip to content

Commit

Permalink
CXFLW-1230 add vulnerability summary (#1373)
Browse files Browse the repository at this point in the history
* Adding new version

* Added code for vulnerability Summary for PDF.

---------

Co-authored-by: Satyam Chaurasia <[email protected]>
  • Loading branch information
1 parent b04dd63 commit 82bfc29
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 82bfc29

Please sign in to comment.