use of com.checkmarx.sdk.dto.ScanResults in project cx-flow by checkmarx-ltd.
the class PublishTicketsWithOptionalScmConfSteps method resultsProcessing.
@When("processing the results")
public void resultsProcessing() throws IOException, MachinaException {
scanRequest = getBasicScanRequest();
ScanResults scanResults = JsonUtils.json2Object(TestUtils.getFileFromRelativeResourcePath(INPUT_BASE_PATH + INPUT_FILE), ScanResults.class);
resultsService.processResults(scanRequest, scanResults, null);
}
use of com.checkmarx.sdk.dto.ScanResults in project cx-flow by checkmarx-ltd.
the class ScaZipScanSteps method initScan.
@When("initiating a new scan")
public void initScan() {
ScanRequest scanRequest = getBasicScanRequest(PROJECT_NAME, GIT_REPO_URL);
ScanResults scanResults = scaScanner.scan(scanRequest);
scaResults = Objects.requireNonNull(scanResults).getScaResults();
}
use of com.checkmarx.sdk.dto.ScanResults in project cx-flow by checkmarx-ltd.
the class AbstractScanSteps method callSast.
protected ScanDTO callSast() {
ScanRequest request = generateRequest();
try {
scanDetails = sastScanner.executeCxScan(request, fileRepo);
CompletableFuture<ScanResults> future = new CompletableFuture<>();
// TODO async these, and join and merge after
results = cxClient.getReportContentByScanId(scanDetails.getScanId(), request.getFilter());
future.complete(results);
results = future.join();
errorExpected = false;
return retainOutputValues();
} catch (Exception e) {
if (!errorExpected) {
fail(e.getMessage());
}
return null;
}
}
use of com.checkmarx.sdk.dto.ScanResults in project cx-flow by checkmarx-ltd.
the class ScaIssuesCreationSteps method publishNewScaResults.
@When("publishing new known unfiltered SCA results with 8 findings including 2 high and 6 medium vulnerabilities")
public void publishNewScaResults() throws IOException, MachinaException {
ScanResults scanResults = JsonUtils.json2Object(TestUtils.getFileFromRelativeResourcePath(INPUT_BASE_PATH + INPUT_FILE), ScanResults.class);
resultsService.processResults(getBasicScanRequest(), scanResults, null);
}
use of com.checkmarx.sdk.dto.ScanResults in project cx-flow by checkmarx-ltd.
the class ScaResolveIssueSteps method processResultsByInput.
private void processResultsByInput(String inputFile) throws IOException, MachinaException {
ScanResults scanResults = JsonUtils.json2Object(TestUtils.getFileFromRelativeResourcePath(INPUT_BASE_PATH + inputFile), ScanResults.class);
resultsService.processResults(getBasicScanRequest(), scanResults, null);
}
Aggregations