GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@parkerbxyz

@parkerbxyz parkerbxyz commented Mar 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR switches proxy support to Node's native env-proxy handling and makes the required configuration explicit.

What changed

  • 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

Proxy configuration

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@parkerbxyz
fix: restore proxy env support on beta
28f66b6
Use Undici's EnvHttpProxyAgent in the shared request client so the beta branch keeps proxy support without relying on NODE_USE_ENV_PROXY or respawning the action process.

Add focused proxy tests and regenerate snapshots/dist.

Co-authored-by: Copilot <[email protected]>
@parkerbxyz
parkerbxyz changed the base branch from main to beta March 12, 2026 18:32
@parkerbxyz parkerbxyz self-assigned this Mar 12, 2026
parkerbxyz and others added 3 commits March 12, 2026 12:19
@parkerbxyz
test: add proxy smoke test workflow
3439ac9
Add a real end-to-end proxy job that starts a local CONNECT proxy, runs the action with https_proxy, and asserts that traffic actually tunneled through the proxy.

Co-authored-by: Copilot <[email protected]>
@parkerbxyz
test: simplify proxy smoke test
3d276c3
Remove the extra post-action API request from the proxy workflow job so it only verifies the action succeeds and that proxy traffic occurred.

Co-authored-by: Copilot <[email protected]>
@parkerbxyz
fix: rely on native node proxy support
17c931c
Remove the bundled runtime proxy handling and rely on Node's native env-proxy support instead.

Document the required NODE_USE_ENV_PROXY / NODE_OPTIONS setting, fail fast when proxy vars are set without native proxy support enabled, and keep proxy CI coverage on the native path.

Co-authored-by: Copilot <[email protected]>
@parkerbxyz parkerbxyz changed the title Restore beta proxy env support with EnvHttpProxyAgent fix: rely on native Node proxy support Mar 13, 2026
parkerbxyz and others added 2 commits March 12, 2026 20:49
@parkerbxyz
refactor: move proxy guard into request module
f9148ce
Fold the native proxy support guard into lib/request.js so the request-related logic stays together without a separate helper file.

Co-authored-by: Copilot <[email protected]>
@parkerbxyz
docs: standardize on NODE_USE_ENV_PROXY
4a58a8c
Make NODE_USE_ENV_PROXY=1 the only documented and enforced knob for enabling native proxy support.

Co-authored-by: Copilot <[email protected]>
@parkerbxyz parkerbxyz changed the title fix: rely on native Node proxy support fix!: require NODE_USE_ENV_PROXY for proxy support Mar 13, 2026
parkerbxyz and others added 2 commits March 12, 2026 21:43
@parkerbxyz
ci: update actions org dependencies
614fa33
Bump actions org workflow dependencies to their latest major versions where available.

Co-authored-by: Copilot <[email protected]>
@parkerbxyz
ci: use packageManager metadata for setup-node
840e9b8
Co-authored-by: Copilot <[email protected]>
@parkerbxyz parkerbxyz changed the title fix!: require NODE_USE_ENV_PROXY for proxy support fix!: require NODE_USE_ENV_PROXY for proxy support Mar 13, 2026
parkerbxyz and others added 6 commits March 12, 2026 21:53
@parkerbxyz
revert: drop unrelated workflow version bumps
f264ba5
Co-authored-by: Copilot <[email protected]>
@parkerbxyz
test: simplify proxy workflow assertion
5f601e9
Co-authored-by: Copilot <[email protected]>
@parkerbxyz
test: move proxy workflow plumbing into helper
a7b1842
Co-authored-by: Copilot <[email protected]>
@parkerbxyz
test: simplify proxy helper logging
dcbcfe6
Co-authored-by: Copilot <[email protected]>
@parkerbxyz
test: simplify proxy end-to-end coverage
60454ce
Co-authored-by: Copilot <[email protected]>
@parkerbxyz
test: clarify unreachable proxy workflow
8c3363d
Co-authored-by: Copilot <[email protected]>
@parkerbxyz
parkerbxyz marked this pull request as ready for review March 13, 2026 05:28
@parkerbxyz
parkerbxyz requested a review from a team as a code owner March 13, 2026 05:28
Copilot AI review requested due to automatic review settings March 13, 2026 05:28
Copilot started reviewing on behalf of parkerbxyz March 13, 2026 05:29
View session
@parkerbxyz parkerbxyz changed the title fix!: require NODE_USE_ENV_PROXY for proxy support fix: require NODE_USE_ENV_PROXY for proxy support Mar 13, 2026
Copilot AI reviewed Mar 13, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes proxy behavior explicit by relying on Node.js native env-proxy handling and failing fast when proxy env vars are set without NODE_USE_ENV_PROXY=1, with accompanying docs and test/workflow coverage.

Changes:

  • Add a proxy configuration guard (ensureNativeProxySupport) and invoke it in both main and post entrypoints.
  • Add regression tests and update AVA snapshots for the proxy guard behavior.
  • Update README and CI workflow to document and validate the new proxy requirement (including a proxy-failure E2E job and running on beta pushes).

Reviewed changes

Copilot reviewed 9 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread post.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread main.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

@parkerbxyz
fix: route proxy guard failures through setFailed
9f5b13e
Co-authored-by: Copilot <[email protected]>
@parkerbxyz
parkerbxyz requested a review from Copilot March 13, 2026 05:41
Copilot started reviewing on behalf of parkerbxyz March 13, 2026 05:41
View session
@parkerbxyz parkerbxyz mentioned this pull request Mar 13, 2026
WIP proxy support #284
Closed
4 tasks
Copilot AI reviewed Mar 13, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

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:

  • Add a runtime guard (ensureNativeProxySupport) and call it from both main and post entrypoints.
  • Add regression tests + snapshot updates for the new proxy guard behavior.
  • Expand CI to run on beta pushes and add an end-to-end workflow job that validates failure through an unreachable proxy.

Reviewed changes

Copilot reviewed 9 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread lib/request.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

parkerbxyz and others added 2 commits March 12, 2026 22:48
@parkerbxyz
docs: clarify proxy env requirements
86a2237
Co-authored-by: Copilot <[email protected]>
@parkerbxyz
docs: simplify proxy env wording
7938847
Co-authored-by: Copilot <[email protected]>
@parkerbxyz
parkerbxyz requested a review from Copilot March 13, 2026 05:53
Copilot started reviewing on behalf of parkerbxyz March 13, 2026 05:53
View session
@parkerbxyz
docs: move proxy support section
1cfe65a
Co-authored-by: Copilot <[email protected]>
Copilot AI reviewed Mar 13, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

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:

  • Add a guard (ensureNativeProxySupport) that throws when HTTP_PROXY/HTTPS_PROXY are set but NODE_USE_ENV_PROXY !== "1".
  • Invoke the guard at startup in both main and post entrypoints (and in built dist/* outputs).
  • Add regression tests + snapshots and a dedicated end-to-end workflow job that validates failure through an unreachable proxy; run workflows on beta pushes too.

Reviewed changes

Copilot reviewed 9 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@parkerbxyz
parkerbxyz merged commit 54e58b6 into beta Mar 13, 2026
3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@parkerbxyz
parkerbxyz deleted the issue-134-remove-custom-proxy-functionality branch March 13, 2026 06:18
create-app-token-action-releaser Bot pushed a commit that referenced this pull request Mar 13, 2026
@semantic-release-bot
build(release): 3.0.0-beta.3 [skip ci]
d28ad69
# [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))
@create-app-token-action-releaser

create-app-token-action-releaser Bot commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.0.0-beta.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@create-app-token-action-releaser create-app-token-action-releaser Bot added the released on @beta label Mar 13, 2026
parkerbxyz added a commit that referenced this pull request Mar 13, 2026
@parkerbxyz
fix!: require NODE_USE_ENV_PROXY for proxy support (#342)
d53a1cd
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.
create-app-token-action-releaser Bot pushed a commit that referenced this pull request Mar 13, 2026
@semantic-release-bot
build(release): 3.0.0-beta.5 [skip ci]
28bdc1a
# [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.
parkerbxyz added a commit that referenced this pull request Mar 14, 2026
@parkerbxyz
fix: require NODE_USE_ENV_PROXY for proxy support (#342)
65a4227
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)
parkerbxyz added a commit that referenced this pull request Mar 14, 2026
@parkerbxyz
fix!: require NODE_USE_ENV_PROXY for proxy support (#342)
0ab3b8d
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.
parkerbxyz added a commit that referenced this pull request Mar 14, 2026
@parkerbxyz
fix!: require NODE_USE_ENV_PROXY for proxy support (#342)
4451bcb
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.
create-app-token-action-releaser Bot pushed a commit that referenced this pull request Mar 14, 2026
@semantic-release-bot
build(release): 3.0.0 [skip ci]
f8d387b
# [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.
@create-app-token-action-releaser create-app-token-action-releaser Bot mentioned this pull request May 8, 2026
chore(main): release create-github-app-token 4.0.0 #368
Closed
@YumNumm YumNumm mentioned this pull request May 11, 2026
[Improve]: actions/create-github-app-token を v1.8.1 から v3.1.1 にアップデートする ymm-oss/flutter-mobile-project-template#629
Closed
3 tasks
@github-actions github-actions Bot mentioned this pull request May 15, 2026
chore(ci)(deps): bump actions/create-github-app-token from 2.2.2 to 3.2.0 CopilotKit/CopilotKit#4854
Merged
@claude claude Bot mentioned this pull request Aug 1, 2026
chore(deps): bump actions/create-github-app-token from 2 to 3 dimagi/open-chat-studio#4033
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@parkerbxyz parkerbxyz

Labels

released on @beta

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@parkerbxyz
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.