Search in sources :

Example 6 with ScaConfig

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;
}
Also used : ScaConfig(com.checkmarx.sdk.dto.sca.ScaConfig) RestClientConfig(com.checkmarx.sdk.config.RestClientConfig)

Aggregations

ScaConfig (com.checkmarx.sdk.dto.sca.ScaConfig)6 RestClientConfig (com.checkmarx.sdk.config.RestClientConfig)3 com.checkmarx.sdk.config (com.checkmarx.sdk.config)1 RemoteRepositoryInfo (com.checkmarx.sdk.dto.RemoteRepositoryInfo)1 ScanParams (com.checkmarx.sdk.dto.ast.ScanParams)1