From 39808af6a2287cda0cc16be81b47b1322a3798c7 Mon Sep 17 00:00:00 2001 From: Parker Brown <17183625+parkerbxyz@users.noreply.github.com> Date: Fri, 22 Aug 2025 13:05:03 -0700 Subject: [PATCH] Move NODE_USE_ENV_PROXY assignment to top of file Relocated the setting of process.env.NODE_USE_ENV_PROXY to the beginning of main.js for improved clarity and to ensure the environment variable is set before any imports or logic are executed. --- main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.js b/main.js index 844c4d9..bc11c6d 100644 --- a/main.js +++ b/main.js @@ -1,4 +1,5 @@ // @ts-check +process.env.NODE_USE_ENV_PROXY = "1"; import core from "@actions/core"; import { createAppAuth } from "@octokit/auth-app"; @@ -15,8 +16,6 @@ if (!process.env.GITHUB_REPOSITORY_OWNER) { throw new Error("GITHUB_REPOSITORY_OWNER missing, must be set to ''"); } -process.env.NODE_USE_ENV_PROXY = "1"; - const appId = core.getInput("app-id"); const privateKey = core.getInput("private-key"); const owner = core.getInput("owner");