fix: add undici ProxyAgent support for GitHub Enterprise Server behind proxies by rb-mwindh · Pull Request #1104 · semantic-release/github

@rb-mwindh

…d proxies

- Add undici ProxyAgent as dispatcher in custom fetch function
- Maintain backwards compatibility with existing agent option
- Add comprehensive unit tests for proxy functionality
- Fix proxy support for GitHub Enterprise Server environments

Fixes issue where @semantic-release/github cannot connect through
corporate proxies due to undici's fetch implementation not
respecting the agent option.

The solution provides both legacy agent support and new undici
ProxyAgent dispatcher for modern Octokit versions that use undici
as their fetch implementation.

@rb-mwindh

gr2m

gr2m approved these changes Nov 7, 2025

@rb-mwindh

@rb-mwindh

@rb-mwindh

@rb-mwindh rb-mwindh deleted the fix/proxy-support-with-undici branch

November 8, 2025 14:26