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");