Skip to content

Commit

Permalink
add main branch scan timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanSerafini committed Sep 17, 2024
1 parent 6899052 commit c067e89
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,15 @@ Optional path within the git repository to execute scanners in.

When this parameter is specified, you must also provide a `scan_label` to identify the component.

### `scan_timeout` (Optional, number)
### `scan_timeout` (Optional, number) deprecated

The optional timeout after which the Github check will be marked as failed. This defaults to 120 seconds.

### `scan_diff_timeout` (Optional, number)

The optional timeout on a diff scan after which the Github check will be marked as failed. This defaults to 120 seconds.

### `scan_main_timeout` (Optional, number)

The optional timeout on a main scan after which the Github check will be marked as failed. This defaults to 2 hours.

9 changes: 8 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ inputs:
scan_timeout:
description: "Maximum amount of time a diff scan should complete in"
default: ""
scan_diff_timeout:
description: "Maximum amount of time a diff scan should complete in"
default: ""
scan_main_timeout:
description: "Maximum amount of time a main scan should complete in"
default: ""
runs:
using: "composite"
steps:
Expand All @@ -59,7 +65,8 @@ runs:
BOOST_GIT_MAIN_BRANCH: ${{ inputs.main_branch }}
BOOST_IGNORE_FAILURE: ${{ inputs.ignore_failure }}
BOOST_LOG_LEVEL: ${{ inputs.log_level }}
BOOST_DIFF_SCAN_TIMEOUT: ${{ inputs.scan_timeout }}
BOOST_DIFF_SCAN_TIMEOUT: ${{ inputs.scan_diff_timeout == "" && inputs.scan_timeout || inputs.scan_diff_timeout }}
BOOST_MAIN_SCAN_TIMEOUT: ${{ inputs.scan_main_timeout }}
BOOST_PRE_SCAN: ${{ inputs.pre_scan_cmd }}
BOOST_SCAN_LABEL: ${{ inputs.scan_label }}
BOOST_SCAN_PATH: ${{ inputs.scan_path }}
Expand Down

0 comments on commit c067e89

Please sign in to comment.