Skip to content

Commit 35c4a0d

Browse files
committed
Remove debugging logs
1 parent 9b60579 commit 35c4a0d

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

main.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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

main.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)