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