From 194db51e513df3867b2fc7c1063f5b0e158d6863 Mon Sep 17 00:00:00 2001 From: Raj-StepSecurity Date: Wed, 8 Jul 2026 10:01:17 +0530 Subject: [PATCH 1/2] wait for pending run status (#97) --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 66f7ec8..c1b5372 100644 --- a/src/main.ts +++ b/src/main.ts @@ -105,7 +105,7 @@ async function run(): Promise { if (waitForCompletion) { core.info(`⏳ Waiting for workflow run to complete with a timeout of ${timeoutSeconds} seconds...`) const startTime = Date.now() - while (runStatus === 'in_progress' || runStatus === 'queued' || runStatus === 'waiting') { + while (runStatus === 'in_progress' || runStatus === 'queued' || runStatus === 'waiting' || runStatus === 'pending') { if ((Date.now() - startTime) / 1000 > timeoutSeconds) { core.warning( `⚠️ Workflow run did not complete within ${timeoutSeconds} seconds, timing out.\nNote: The workflow is still running but we have stopped waiting. You can check the run status here: ${dispatchResp.data.html_url}`, From b40d1227db7c8bd251b242d7263434355869ad19 Mon Sep 17 00:00:00 2001 From: Raj-StepSecurity Date: Wed, 8 Jul 2026 09:59:05 +0530 Subject: [PATCH 2/2] dist rebuilt --- dist/index.js | 2 +- src/main.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index c818ff5..162fa0c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -39794,7 +39794,7 @@ async function run() { if (waitForCompletion) { info(`\u23F3 Waiting for workflow run to complete with a timeout of ${timeoutSeconds} seconds...`); const startTime = Date.now(); - while (runStatus === "in_progress" || runStatus === "queued" || runStatus === "waiting") { + while (runStatus === "in_progress" || runStatus === "queued" || runStatus === "waiting" || runStatus === "pending") { if ((Date.now() - startTime) / 1e3 > timeoutSeconds) { warning( `\u26A0\uFE0F Workflow run did not complete within ${timeoutSeconds} seconds, timing out. diff --git a/src/main.ts b/src/main.ts index c1b5372..afe4f50 100644 --- a/src/main.ts +++ b/src/main.ts @@ -105,7 +105,12 @@ async function run(): Promise { if (waitForCompletion) { core.info(`⏳ Waiting for workflow run to complete with a timeout of ${timeoutSeconds} seconds...`) const startTime = Date.now() - while (runStatus === 'in_progress' || runStatus === 'queued' || runStatus === 'waiting' || runStatus === 'pending') { + while ( + runStatus === 'in_progress' || + runStatus === 'queued' || + runStatus === 'waiting' || + runStatus === 'pending' + ) { if ((Date.now() - startTime) / 1000 > timeoutSeconds) { core.warning( `⚠️ Workflow run did not complete within ${timeoutSeconds} seconds, timing out.\nNote: The workflow is still running but we have stopped waiting. You can check the run status here: ${dispatchResp.data.html_url}`,