Using self signed certificate with getInstallationAccessToken
b4nst opened this issue · 2 comments
When using with GitHub Enterprise behind a self signed certificate, how can I pass a custom agent to getInstallationAccessToken
as I can do with new Octokit({agent})
?
This should be possible with the new @octokit/auth-app.js, I will deprecate this module soon in favor of @octokit/auth-app.js
.
@octokit/auth-app.js
accepts a request
option to which you can pass in the octokit.request
method from your configured Octokit client: https://github.com/octokit/auth-app.js/#createappauthoptions
Does that work for you?
Yep that should work for me, because in the meantime I used octokit.request
(with a proper configured https.Agent
) and reforged the request found here :
app.js/src/get-installation-access-token.ts
Lines 15 to 26 in 33b558d
and this worked. Thank you for pointing me the new module.