use of com.checkmarx.sdk.dto.sca.ScaConfig in project checkmarx-spring-boot-java-sdk by checkmarx-ltd.
the class ScaScanner method getScanConfig.
/**
* Convert scanParams to an object that is used by underlying logic in Common Client.
*/
@Override
public RestClientConfig getScanConfig(ScanParams scanParams) {
RestClientConfig restClientConfig = new RestClientConfig();
restClientConfig.setProjectName(scanParams.getProjectName());
restClientConfig.setDisableCertificateValidation(scanParams.isDisableCertificateValidation());
ScaConfig scaConfig = getScaSpecificConfig(scanParams);
setSourceLocation(scanParams, restClientConfig, scaConfig);
if (scanParams.getRemoteRepoUrl() != null) {
restClientConfig.setClonedRepo(true);
}
restClientConfig.setScaConfig(scaConfig);
return restClientConfig;
}
Aggregations