codecov-action icon indicating copy to clipboard operation
codecov-action copied to clipboard

self-hosted agent behind the proxy

Open chenghuang-mdsol opened this issue 2 years ago • 1 comments

The action is not working for self-host agents behind the proxy (setup by https://docs.github.com/en/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners) This is because https://github.com/codecov/codecov-action/blob/53cfbc752e9c24b67aa0ada6f90cd0ea22c5f6d6/src/index.ts#L25 http.get doesn't use http_proxy / https_proxy env vars. Can you change it to some http-client which respects these 2 env vars? (e.g. https://github.com/actions/http-client)

chenghuang-mdsol avatar Apr 22 '22 22:04 chenghuang-mdsol

uploader have an option to specify proxy but the action do not have. So, I'm still using codecov-uploader directly with my self-hosted runner.

-U, --upstream | The upstream http proxy server to connect through[string] [default: ""]

https://docs.codecov.com/docs/codecov-uploader

yasuto-nishii avatar May 24 '22 04:05 yasuto-nishii