Skip to content

Action fails behind the proxy #17

@ytsarev

Description

@ytsarev

We are using self-hosted runners and trying to execute the action behind the corporate proxy

It fails with

Run hashicorp/setup-terraform@v1
##[error]Failed to fetch version metadata. FetchError: request to https://releases.hashicorp.com/terraform/index.json failed, reason: connect ETIMEDOUT 151.101.193.183:443
##[error](s || "").replace is not a function

I tried to declare standard http_proxy variables with

        env:
          http_proxy: http://<proxy_adress>:<port>
          https_proxy: http://<proxy_adress>:<port>

It didn't help apparently due to the node's fetch specifics which is used at

return fetch('https://releases.hashicorp.com/terraform/index.json')

Related upstream issue node-fetch/node-fetch#79

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions