Skip to content

Commit 9b60579

Browse files
committed
Compile
1 parent fb8808f commit 9b60579

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ function run() {
106106
const block_on_severity = core.getInput("BLOCK_ON_SEVERITY");
107107
const warn_on_severity = core.getInput("WARN_ON_SEVERITY");
108108
const polling_timeout = core.getInput("POLLING_TIMEOUT");
109+
if (polling_timeout) {
110+
maxWaitTime = parseInt(polling_timeout, 10);
111+
// Fallback to default value if the value is incorrect
112+
if (isNaN(maxWaitTime)) {
113+
maxWaitTime = 300000;
114+
}
115+
console.log("Custom polling timeout set: " + polling_timeout);
116+
}
109117
// Validate severity levels
110118
if (block_on_severity &&
111119
!["HIGH", "MEDIUM", "LOW"].includes(block_on_severity.toUpperCase())) {

0 commit comments

Comments
 (0)