diff --git a/bot/utils.go b/bot/utils.go index 74b617c..66329eb 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}) @@ -24,7 +24,7 @@ func initGitHubClient() { log.Println("Initializing......") if privateKey != "" { - log.Println(privateKey) + log.Println("Private key loaded from env!") } else { log.Println("Private key not found!") os.Exit(0)