use of com.checkmarx.flow.dto.ScanRequest in project cx-flow by checkmarx-ltd.
the class RunPublishProcessSteps method publishIssueForUpdate.
@When("publishing same issue with different parameters")
public void publishIssueForUpdate() throws IOException, ExitThrowable, InterruptedException {
TimeUnit.SECONDS.sleep(2);
ScanRequest request = getScanRequestWithDefaults();
File file = getFileFromResourcePath("cucumber/data/sample-sast-results/1-finding-updated.xml");
innerPublishRequest(request, file);
}
use of com.checkmarx.flow.dto.ScanRequest in project cx-flow by checkmarx-ltd.
the class ScaCommonSteps method getBasicScanRequest.
protected ScanRequest getBasicScanRequest(String projectName, String repoWithAuth) {
BugTracker bt = BugTracker.builder().type(BugTracker.Type.JIRA).customBean("JIRA").build();
ScanRequest request = ScanRequest.builder().project(projectName).repoUrlWithAuth(repoWithAuth).branch("master").repoType(ScanRequest.Repository.GITHUB).bugTracker(bt).build();
scaConfigOverrider.initScaConfig(request);
return request;
}
use of com.checkmarx.flow.dto.ScanRequest in project cx-flow by checkmarx-ltd.
the class ScaFiltersSteps method scanResults.
@When("SCA runs a new scan on Filters-Tests-Repo which contains 8 vulnerabilities results")
public void scanResults() {
// scanRequest must be created after all the changes in scaProperties are done.
ScanRequest scanRequest = getBasicScanRequest(PROJECT_NAME, GIT_REPO_URL);
ScanResults scanResults = scaScanner.scan(scanRequest);
scaResults = Objects.requireNonNull(scanResults).getScaResults();
}
use of com.checkmarx.flow.dto.ScanRequest in project cx-flow by checkmarx-ltd.
the class JiraLoadTestSteps method internalPublishResults.
private void internalPublishResults() throws ExitThrowable, IOException {
ScanRequest request = getScanRequestWithDefaults();
File file = publishUtils.getFileFromResourcePath(filename);
StopWatch stopWatch = new StopWatch();
stopWatch.start();
publishUtils.publishRequest(request, file, BugTracker.Type.JIRA, sastScanner);
stopWatch.stop();
durations.add(stopWatch.getTime());
}
use of com.checkmarx.flow.dto.ScanRequest in project cx-flow by checkmarx-ltd.
the class ScaPolicyManagementSteps method initNewScan.
@When("initiating a new scan")
public void initNewScan() {
ScanRequest scanRequest = getBasicScanRequest(PROJECT_NAME, GIT_REPO_URL);
ScanResults scanResults = scaScanner.scan(scanRequest);
scaResults = Objects.requireNonNull(scanResults).getScaResults();
}
Aggregations