GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix: require `NODE_USE_ENV_PROXY` for proxy support by parkerbxyz · Pull Request #342 · actions/create-github-app-token Conversation
|
| File | Description |
|---|---|
lib/request.js |
Introduces proxy env detection and the ensureNativeProxySupport guard. |
main.js |
Calls the new guard during action startup. |
post.js |
Calls the new guard during post-step startup. |
tests/index.js |
Sanitizes proxy-related env vars for deterministic test execution. |
tests/main-proxy-requires-native-support.test.js |
Adds regression test for main proxy guard. |
tests/post-proxy-requires-native-support.test.js |
Adds regression test for post proxy guard. |
tests/snapshots/index.js.md |
Updates snapshot report with new proxy-guard test output. |
tests/snapshots/index.js.snap |
Updates/creates AVA snapshot data backing the report. |
README.md |
Documents required configuration for proxy usage. |
.github/workflows/test.yml |
Runs tests on beta pushes and adds an E2E job validating failure via unreachable proxy. |
dist/main.cjs |
Updates bundled output to include the new guard and call site. |
dist/post.cjs |
Updates bundled output to include the new guard and call site. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This PR makes proxy behavior explicit by switching to Node.js native env-proxy handling and failing early when proxy env vars are set without NODE_USE_ENV_PROXY=1, with accompanying docs, tests, and CI coverage.
Changes:
ensureNativeProxySupport) and call it from both main and post entrypoints.beta pushes and add an end-to-end workflow job that validates failure through an unreachable proxy.Copilot reviewed 9 out of 12 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
lib/request.js |
Adds ensureNativeProxySupport() to enforce explicit opt-in to Node’s env proxy support. |
main.js |
Wraps entrypoint in run() and calls proxy guard before executing main logic. |
post.js |
Wraps entrypoint in run() and calls proxy guard before executing post logic. |
tests/index.js |
Clears proxy-related env vars for consistent test execution. |
tests/main-proxy-requires-native-support.test.js |
Regression test for main entrypoint proxy guard behavior. |
tests/post-proxy-requires-native-support.test.js |
Regression test for post entrypoint proxy guard behavior. |
tests/snapshots/index.js.md |
Updates snapshot report with new proxy-guard test outputs. |
tests/snapshots/index.js.snap |
Updates underlying AVA snapshot data. |
.github/workflows/test.yml |
Runs on beta pushes and adds an end-to-end “unreachable proxy” job. |
README.md |
Documents proxy configuration and NODE_USE_ENV_PROXY requirement. |
dist/main.cjs |
Bundled output reflecting entrypoint + proxy guard changes. |
dist/post.cjs |
Bundled output reflecting entrypoint + proxy guard changes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This PR makes proxy behavior explicit by switching proxy handling to Node.js native environment proxy support and failing fast when proxy variables are set without enabling that support, with accompanying documentation and regression coverage.
Changes:
ensureNativeProxySupport) that throws when HTTP_PROXY/HTTPS_PROXY are set but NODE_USE_ENV_PROXY !== "1".main and post entrypoints (and in built dist/* outputs).beta pushes too.Copilot reviewed 9 out of 12 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| lib/request.js | Adds the ensureNativeProxySupport() guard and proxy env detection. |
| main.js | Calls the proxy guard early via a new run() wrapper before main logic. |
| post.js | Calls the proxy guard early via a new run() wrapper before post logic. |
| tests/main-proxy-requires-native-support.test.js | Regression test ensuring main fails fast when proxy is set without native support enabled. |
| tests/post-proxy-requires-native-support.test.js | Regression test ensuring post fails fast when proxy is set without native support enabled. |
| tests/index.js | Clears proxy-related env vars for deterministic test runs across environments. |
| tests/snapshots/index.js.md | Updates human-readable AVA snapshot output to include new proxy-guard tests. |
| tests/snapshots/index.js.snap | Adds the corresponding AVA snapshot data file. |
| README.md | Documents required env configuration for proxy usage (NODE_USE_ENV_PROXY). |
| .github/workflows/test.yml | Runs CI on beta pushes and adds an end-to-end “unreachable proxy” validation job. |
| dist/main.cjs | Bundled output updated to include the proxy guard and entrypoint wrapper. |
| dist/post.cjs | Bundled output updated to include the proxy guard and entrypoint wrapper. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
# [3.0.0-beta.3](v3.0.0-beta.2...v3.0.0-beta.3) (2026-03-13) ### Bug Fixes * require `NODE_USE_ENV_PROXY` for proxy support ([#342](#342)) ([54e58b6](54e58b6))
|
🎉 This PR is included in version 3.0.0-beta.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.
# [3.0.0-beta.5](v3.0.0-beta.4...v3.0.0-beta.5) (2026-03-13) * fix!: require `NODE_USE_ENV_PROXY` for proxy support ([#342](#342)) ([d53a1cd](d53a1cd)) ### BREAKING CHANGES * 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 PR switches proxy support to Node's native env-proxy handling and makes the required configuration explicit. - fail fast in both `main` and `post` when proxy configuration is present without `NODE_USE_ENV_PROXY=1` - document the supported proxy configuration in `README.md` - add regression tests for the proxy guard in both entrypoints - keep the existing successful end-to-end coverage and add a smaller proxy-specific workflow check that enables native proxy support, points `https_proxy` at an unreachable proxy, and asserts the action fails - update the test workflow so the same checks also run on pushes to `beta` When using `HTTP_PROXY` or `HTTPS_PROXY`, set `NODE_USE_ENV_PROXY=1` on the action step. If you need bypass rules, set `NO_PROXY` alongside them. --------- Co-authored-by: Copilot <[email protected]> (cherry picked from commit 54e58b6)
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.
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.
# [3.0.0](v2.2.2...v3.0.0) (2026-03-14) * feat!: node 24 support ([#275](#275)) ([2e564a0](2e564a0)) * fix!: require `NODE_USE_ENV_PROXY` for proxy support ([#342](#342)) ([4451bcb](4451bcb)) ### Bug Fixes * remove custom proxy handling ([#143](#143)) ([dce0ab0](dce0ab0)) ### BREAKING CHANGES * 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. * Requires [Actions Runner v2.327.1](https://github.com/actions/runner/releases/tag/v2.327.1) or later if you are using a self-hosted runner.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.