We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb8808f commit 9b60579Copy full SHA for 9b60579
1 file changed
main.js
@@ -106,6 +106,14 @@ function run() {
106
const block_on_severity = core.getInput("BLOCK_ON_SEVERITY");
107
const warn_on_severity = core.getInput("WARN_ON_SEVERITY");
108
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
117
// Validate severity levels
118
if (block_on_severity &&
119
!["HIGH", "MEDIUM", "LOW"].includes(block_on_severity.toUpperCase())) {
0 commit comments