Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up command fails on Github Enterprise with Self-signed Certificate warning #303

Open
KalleV opened this issue Oct 2, 2019 · 2 comments
Labels

Comments

@KalleV
Copy link
Contributor

KalleV commented Oct 2, 2019

Hi,

I'm trying to use the set up command, and it's failing on the Github step with this warning when I am trying to set it up for a Github Enterprise repository:

? What is your GitHub password? [hidden]
ERR! semantic-release RequestError: Error: self signed certificate in certificate chain
ERR! semantic-release     at new RequestError (node_modules/semantic-release-cli/node_modules/request-promise-core/lib/errors.js:14:15)
ERR! semantic-release     at Request.plumbing.callback (node_modules/semantic-release-cli/node_modules/request-promise-core/lib/plumbing.js:87:29)
ERR! semantic-release     at Request.RP$callback [as _callback] (node_modules/semantic-release-cli/node_modules/request-promise-core/lib/plumbing.js:46:31)

I assume this is because the Github enterprise is using certificates that are not associated with a well known CA since it is an on-premise environment.

Can we add a flag to the CLI to pass to the request for ignoring self-signed certificates?

request/request-promise#225 (comment)

@pvdlg pvdlg added the cli label Oct 2, 2019
@KalleV
Copy link
Contributor Author

KalleV commented Oct 2, 2019

This workaround seemed to take care of it: request/request#2061 (comment)

@tma-arf
Copy link

tma-arf commented Jan 9, 2024

I cannot get past this error after reading provided links, is there a clear indication of how to pass variables like NODE_TLS NODE_TLS_REJECT_UNAUTHORIZED=0 or equivalent to semantic-release, as in v22 he seems to not use them ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants