-
Notifications
You must be signed in to change notification settings - Fork 480
Description
Describe the bug
With the update to 6.3.0 the requests are no longer going through the default proxy. Depending on the firewall and proxy configuration this would cause a connection timeout or other error.
To Reproduce
Steps to reproduce the behavior:
The steps may vary depending on the proxy and firewall.
1 - Configure a selfhosted runner with a default proxy
2 - Execute a workflow with this step:
steps:
- uses: actions/github-script@v6.2.0
with:
script: |
const {repo,owner} = context.repo;
const response = await github.rest.pulls.list({owner,repo});
console.log(response);
Expected behavior
The expected behaviour is that the action uses the default proxy.
Additional context
The self-hosted runner's version is 2.297.0. Checking the code it seems that in this line, opts.request
is set as {}
by default or { retries: <some-number> }
if retries are configured. This is just overriding the default values of request
in @actions/github.