Skip to content

Commit

Permalink
feat(runner): introduce default scan timeout (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmstss authored Jul 12, 2024
1 parent cb3b02c commit ffe382d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/runner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ scan.timeout(30000);
```

In that case after 30 seconds, if the scan isn't finishing or finding any vulnerability, it will throw an error.
The default timeout value for `SecScan` is 10 minutes.

### Usage sample

Expand Down
2 changes: 1 addition & 1 deletion packages/runner/src/lib/SecScan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export class SecScan {
private _threshold = Severity.LOW;
private _timeout: number | undefined;
private _timeout = 600_000;

constructor(
private readonly settings: Omit<ScanSettingsOptions, 'target'>,
Expand Down

0 comments on commit ffe382d

Please sign in to comment.