use of com.mercedesbenz.sechub.sereco.Workspace in project sechub by mercedes-benz.
the class SerecoReportProductExecutor method createReport.
private ProductResult createReport(String projectId, UUID secHubJobUUID, UUIDTraceLogID traceLogId, ProductExecutorContext executorContext, List<ProductResult> foundProductResults) {
Workspace workspace = sechubReportCollector.createWorkspace(projectId);
for (ProductResult productResult : foundProductResults) {
importProductResult(traceLogId, workspace, productResult);
}
String json = workspace.createReport();
/* fetch + return all vulnerabilities as JSON */
return new ProductResult(secHubJobUUID, projectId, executorContext.getExecutorConfig(), json);
}
Aggregations