question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Octokit proxy configuration

See original GitHub issue

I have an enterprise github setup which is behind a proxy. Octokit supports this configuration but there is no notion to pass proxy configuration in @sementic-release/github library.

Am I missing something?

I have tested this by changing the Octokit initialization in the following line (It works!): https://github.com/semantic-release/github/blob/master/lib/get-client.js#L105

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pvdlgcommented, Jul 7, 2018

The fact that the target URL is https is independent of the protocol supported by the proxy. You can use an http proxy to reach an https URL and vice-versa. The environment variable HTTP_PROXY is just a generic name, it doesn’t imply that the proxy has to be contacted with http or https nor that the URL you target is http or https.

You should configure HTTP_PROXY to https://your-proxy:3128 if it supports https and you want the communications between the plugin and the proxy to be secured. If your proxy doesn’t support https or you don’t want to secure the communication between between the client and the proxy then you can configure HTTP_PROXY to http://your-proxy:3128.

0reactions
prime-optimuscommented, Jul 7, 2018

thanks, @pvdlg for the explanation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module: Octokit::Configurable —
Configuration options for Client, defaulting to values in Default ... Instruct Octokit to get credentials from .netrc file. ... URI for proxy server....
Read more >
rest.js - @octokit/rest - npm
Start using @octokit/rest in your project by running `npm i @octokit/rest`. ... such as custom SSL certificate or proxy settings.
Read more >
actions/github/README.md - UNPKG
Returns an authenticated Octokit client that follows the machine [proxy settings](https://help.github.com/en/actions/hosting-your-own-runners/using-a-proxy- ...
Read more >
HttpClient - Octokit.net Documentation - Read the Docs
If you want to understand more of the internals of how Octokit is using ... There's some basic support for specify proxy credentials,...
Read more >
Octokit NPM - npm.io
Proxy Servers (Node.js only). By default, the Octokit API client does not make use of the standard proxy server environment variables. To add...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found