use of com.synopsys.integration.detect.tool.signaturescanner.SignatureScanPath in project synopsys-detect by blackducksoftware.
the class SignatureScanStepRunner method runSignatureScannerOffline.
public void runSignatureScannerOffline(NameVersion projectNameVersion, DockerTargetData dockerTargetData) throws DetectUserFriendlyException, OperationException {
ScanBatchRunner scanBatchRunner = resolveOfflineScanBatchRunner();
List<SignatureScanPath> scanPaths = operationFactory.createScanPaths(projectNameVersion, dockerTargetData);
ScanBatch scanBatch = operationFactory.createScanBatchOffline(scanPaths, projectNameVersion, dockerTargetData);
executeScan(scanBatch, scanBatchRunner, scanPaths);
}
use of com.synopsys.integration.detect.tool.signaturescanner.SignatureScanPath in project synopsys-detect by blackducksoftware.
the class CreateSignatureScanReports method reportResults.
public List<SignatureScannerReport> reportResults(List<SignatureScanPath> signatureScanPaths, List<ScanCommandOutput> scanCommandOutputList) {
List<SignatureScannerReport> signatureScannerReports = new ArrayList<>();
for (SignatureScanPath signatureScanPath : signatureScanPaths) {
Optional<ScanCommandOutput> scanCommandOutput = scanCommandOutputList.stream().filter(output -> output.getScanTarget().equals(signatureScanPath.getTargetCanonicalPath())).findFirst();
SignatureScannerReport signatureScannerReport = SignatureScannerReport.create(signatureScanPath, scanCommandOutput.orElse(null));
signatureScannerReports.add(signatureScannerReport);
}
return signatureScannerReports;
}
Aggregations