From 77b8be9968526d4b36e63e6b6ba3851e0805f273 Mon Sep 17 00:00:00 2001 From: okseby Date: Mon, 28 Aug 2023 21:56:23 -0400 Subject: [PATCH] Read private key as byte array --- bot/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/utils.go b/bot/utils.go index a8630c6..ae70979 100644 --- a/bot/utils.go +++ b/bot/utils.go @@ -14,7 +14,7 @@ import ( // Wrap the shared transport for use with the integration ID and authenticating with installation ID. var privateKey = os.Getenv("privateKey") -var itr, _ = ghinstallation.NewKeyFromFile(http.DefaultTransport, 381312, 41105280, privateKey) +var itr, _ = ghinstallation.New(http.DefaultTransport, 381312, 41105280, []byte(privateKey)) // Use installation transport with client. var client = github.NewClient(&http.Client{Transport: itr})