Skip to content

Commit

Permalink
AST-2821 Fix - trigger scan also if branch list is empty (#755)
Browse files Browse the repository at this point in the history
Co-authored-by: veredshahar <[email protected]>
  • Loading branch information
veredshahar and veredshahar authored Jun 9, 2021
1 parent 12cb016 commit 0e10cd3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/checkmarx/flow/service/HelperService.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public boolean isBranch2Scan(ScanRequest request, List<String> branches) {
}
}

if (CollectionUtils.isEmpty(branches)) {
return true;
}

// Override branches if provided in the request
if (CollectionUtils.isNotEmpty(request.getActiveBranches())) {
branches = request.getActiveBranches();
Expand Down

0 comments on commit 0e10cd3

Please sign in to comment.