Skip to content

Commit

Permalink
Remove timout from scan binary executor
Browse files Browse the repository at this point in the history
  • Loading branch information
Or-Geva committed Nov 15, 2023
1 parent c549a8a commit edbbf68
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
*/
public abstract class ScanBinaryExecutor {
public static final Path BINARIES_DIR = HOME_PATH.resolve("dependencies").resolve("jfrog-security");
private static final long MAX_EXECUTION_MINUTES = 10;
private static final int UPDATE_INTERVAL = 1;
private static final int USER_NOT_ENTITLED = 31;
private static final int NOT_SUPPORTED = 13;
Expand Down Expand Up @@ -175,7 +174,7 @@ protected List<JFrogSecurityWarning> execute(ScanConfig.Builder inputFileBuilder
%s""", cmd, inputParams));
CommandExecutor commandExecutor = new CommandExecutor(binaryTargetPath.toString(), createEnvWithCredentials());
CommandResults commandResults = commandExecutor.exeCommand(binaryTargetPath.toFile().getParentFile(), args,
null, new NullLog(), MAX_EXECUTION_MINUTES, TimeUnit.MINUTES);
null, new NullLog(), Long.MAX_VALUE, TimeUnit.MINUTES);

checkCanceled.run();

Expand Down

0 comments on commit edbbf68

Please sign in to comment.