From dc673477d892915ce40ecaadeb70bcb5767b1ee4 Mon Sep 17 00:00:00 2001 From: Nicolas Borges Date: Thu, 28 May 2026 11:27:28 -0400 Subject: [PATCH] fix: out-of-scope variable in catch block --- .github/workflows/integration-testing.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-testing.yml b/.github/workflows/integration-testing.yml index 82f8ea44..a4964567 100644 --- a/.github/workflows/integration-testing.yml +++ b/.github/workflows/integration-testing.yml @@ -75,8 +75,8 @@ jobs: with: result-encoding: string script: | + let username; try { - let username; if (context.payload.pull_request) { username = context.payload.pull_request.user.login; } else { @@ -99,7 +99,7 @@ jobs: return "auto-approve" } } catch (error) { - console.log(`${username} does not have write access. Requiring Manual Approval to run PR Checks.`) + console.log(`Permission check failed for ${username}. Requiring Manual Approval to run PR Checks. Error: ${error.message}`); return "manual-approval" }