use of com.checkmarx.flow.exception.IastThresholdsSeverityException in project cx-flow by checkmarx-ltd.
the class IastCliSteps method runningIastService.
@SneakyThrows
@When("running iast service {}")
public void runningIastService(String scanTag) {
scanTag = removeQuotes(scanTag);
try {
BugTracker.Type bugType = BugTracker.Type.GITHUBCOMMIT;
String assignee = "test_user";
BugTracker bt = BugTracker.builder().type(bugType).assignee(assignee).build();
ScanRequest request = ScanRequest.builder().bugTracker(bt).build();
iastService.stopScanAndCreateIssue(request, scanTag);
} catch (IastThresholdsSeverityException e) {
// that is ok. Just Thresholds Severity
}
}
Aggregations