Skip to content

Current version (6.3.0) is overriding proxy configuration #291

@r-antonio

Description

@r-antonio

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions