From fe4ba3360ac01510fe70a73e152ba6e9113b2199 Mon Sep 17 00:00:00 2001 From: Parker Brown <17183625+parkerbxyz@users.noreply.github.com> Date: Fri, 22 Aug 2025 12:31:42 -0700 Subject: [PATCH] Set NODE_USE_ENV_PROXY in main.js and update workflow Moved NODE_USE_ENV_PROXY environment variable assignment from the GitHub Actions workflow to main.js for consistent runtime configuration. This change ensures the variable is always set when the application runs, regardless of workflow environment settings. --- .github/workflows/test.yml | 1 - main.js | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cf89240..1bf7b18 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,7 +45,6 @@ jobs: - uses: ./ # Uses the action in the root directory id: test env: - NODE_USE_ENV_PROXY: 1 https_proxy: https://example.com with: app-id: ${{ vars.TEST_APP_ID }} diff --git a/main.js b/main.js index 7670378..844c4d9 100644 --- a/main.js +++ b/main.js @@ -15,6 +15,8 @@ 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"); @@ -38,7 +40,7 @@ export default main( core, createAppAuth, request, - skipTokenRevoke, + skipTokenRevoke ).catch((error) => { /* c8 ignore next 3 */ console.error(error);