From e9f927f7a62f613c9258d528a7e7564668caaffa Mon Sep 17 00:00:00 2001 From: s-hashimo <108652895+s-hashimo@users.noreply.github.com> Date: Fri, 16 Aug 2024 11:27:28 +0900 Subject: [PATCH] fix: Unhandled scan status "PENDING" --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7111b22..5569e7e 100644 --- a/index.js +++ b/index.js @@ -219,11 +219,11 @@ const main = async () => { }, repositoryName: repository }).promise() - status = 'IN_PROGRESS' + status = 'PENDING' } let firstPoll = true - while (status === 'IN_PROGRESS') { + while (status === 'PENDING' || status === 'IN_PROGRESS') { if (!firstPoll) { await new Promise((resolve) => { setTimeout(resolve, 5000)