Skip to content

Commit a4faae5

Browse files
update default scan timeout to 3 minutes (#37)
<!-- Thank you for proposing a pull request! Please note that SOME TESTS WILL LIKELY FAIL due to how GitHub exposes secrets in Pull Requests from forks. Someone from the team will review your Pull Request and respond. Please describe your change and any implementation details below. -->
1 parent 10bbf7b commit a4faae5

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

dist/main/index.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/commons/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const MIN_SCAN_TIMEOUT = '1m';
2626
export const DEFAULT_FAILURE_CRITERIA = 'Critical:1,High:1,Medium:1,Low:1,Operator:or';
2727
export const DEFAULT_FAIL_SILENTLY = false;
2828
export const DEFAULT_IGNORE_VIOLATIONS = false;
29-
export const DEFAULT_SCAN_TIMEOUT = 60000;
29+
export const DEFAULT_SCAN_TIMEOUT = 180000;
3030
export const SARIF_REPORT_FILE_NAME = 'iac-scan-sarif.json';
3131
export const ORGANIZATION_ID_CONFIG_KEY = 'organization_id';
3232
export const SCAN_FILE_REF_CONFIG_KEY = 'scan_file_ref';

tests/accessor.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ test(
5555
async (suite) => {
5656
let accessor: IACAccessor;
5757
suite.beforeEach(function () {
58-
accessor = new IACAccessor(BASE_URL, ORGANIZATION_ID, 60000, 0, 'version');
58+
accessor = new IACAccessor(BASE_URL, ORGANIZATION_ID, 180000, 0, 'version');
5959
mock.method(Date.prototype, 'getTime', function () {
6060
return 0;
6161
});

0 commit comments

Comments
 (0)