fix!: require NODE_USE_ENV_PROXY for proxy support (#342)

BREAKING CHANGE: Custom proxy handling has been removed. If you use HTTP_PROXY or HTTPS_PROXY, you must now also set NODE_USE_ENV_PROXY=1 on the action step.
This commit is contained in:
Parker Brown
2026-03-12 23:18:56 -07:00
parent dce0ab05f3
commit 4451bcbc13
10 changed files with 161 additions and 25 deletions

10
post.js
View File

@@ -3,9 +3,15 @@
import * as core from "@actions/core";
import { post } from "./lib/post.js";
import request from "./lib/request.js";
import request, { ensureNativeProxySupport } from "./lib/request.js";
post(core, request).catch((error) => {
async function run() {
ensureNativeProxySupport();
return post(core, request);
}
run().catch((error) => {
/* c8 ignore next 3 */
console.error(error);
core.setFailed(error.message);