update var

This commit is contained in:
Jonathan Tamsut
2023-05-01 15:08:41 -07:00
parent 57a5994e12
commit 3fbdfd5f2e
+1 -2
View File
@@ -3,9 +3,8 @@ import { Agent } from "node:https";
import { readFileSync } from "fs";
export function getClient(token: string, userAgent?: string): Octokit {
const selfSignedCertPath = process.env.NODE_EXTRA_CA_CERTS;
const selfSignedCertPath = process.env.PATH_TO_SELF_SIGNED_CERT;
// if NODE_EXTRA_CA_CERTS is set then use the self-signed cert to make the request
if (selfSignedCertPath) {
const httpsAgent = new Agent({
ca: readFileSync(selfSignedCertPath)