Skip to content

Commit

Permalink
update default scan timeout to 3 minutes (#37)
Browse files Browse the repository at this point in the history
<!--
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.
-->
  • Loading branch information
pankhurisaxena28 authored Jun 18, 2024
1 parent 10bbf7b commit a4faae5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions dist/main/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/commons/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const MIN_SCAN_TIMEOUT = '1m';
export const DEFAULT_FAILURE_CRITERIA = 'Critical:1,High:1,Medium:1,Low:1,Operator:or';
export const DEFAULT_FAIL_SILENTLY = false;
export const DEFAULT_IGNORE_VIOLATIONS = false;
export const DEFAULT_SCAN_TIMEOUT = 60000;
export const DEFAULT_SCAN_TIMEOUT = 180000;
export const SARIF_REPORT_FILE_NAME = 'iac-scan-sarif.json';
export const ORGANIZATION_ID_CONFIG_KEY = 'organization_id';
export const SCAN_FILE_REF_CONFIG_KEY = 'scan_file_ref';
Expand Down
2 changes: 1 addition & 1 deletion tests/accessor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test(
async (suite) => {
let accessor: IACAccessor;
suite.beforeEach(function () {
accessor = new IACAccessor(BASE_URL, ORGANIZATION_ID, 60000, 0, 'version');
accessor = new IACAccessor(BASE_URL, ORGANIZATION_ID, 180000, 0, 'version');
mock.method(Date.prototype, 'getTime', function () {
return 0;
});
Expand Down

0 comments on commit a4faae5

Please sign in to comment.