File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,14 +106,6 @@ 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- }
117109 // Validate severity levels
118110 if ( block_on_severity &&
119111 ! [ "HIGH" , "MEDIUM" , "LOW" ] . includes ( block_on_severity . toUpperCase ( ) ) ) {
@@ -275,7 +267,6 @@ function run() {
275267 if ( isNaN ( maxWaitTime ) ) {
276268 maxWaitTime = 300000 ;
277269 }
278- console . log ( "Custom polling timeout set: " + polling_timeout ) ;
279270 }
280271 // Poll for scan completion with 23-second intervals
281272 const pollInterval = 23000 ; // 23 seconds
Original file line number Diff line number Diff line change @@ -126,14 +126,6 @@ async function run() {
126126 const block_on_severity = core . getInput ( "BLOCK_ON_SEVERITY" ) ;
127127 const warn_on_severity = core . getInput ( "WARN_ON_SEVERITY" ) ;
128128 const polling_timeout = core . getInput ( "POLLING_TIMEOUT" ) ;
129- if ( polling_timeout ) {
130- maxWaitTime = parseInt ( polling_timeout , 10 ) ;
131- // Fallback to default value if the value is incorrect
132- if ( isNaN ( maxWaitTime ) ) {
133- maxWaitTime = 300000 ;
134- }
135- console . log ( "Custom polling timeout set: " + polling_timeout ) ;
136- }
137129 // Validate severity levels
138130 if (
139131 block_on_severity &&
@@ -332,7 +324,6 @@ async function run() {
332324 if ( isNaN ( maxWaitTime ) ) {
333325 maxWaitTime = 300000 ;
334326 }
335- console . log ( "Custom polling timeout set: " + polling_timeout ) ;
336327 }
337328
338329 // Poll for scan completion with 23-second intervals
You can’t perform that action at this time.
0 commit comments