From 520460c371bacab500f99d1fde95706402fe0085 Mon Sep 17 00:00:00 2001 From: Harin Date: Sat, 8 Oct 2022 23:34:00 -0700 Subject: [PATCH] Read a filepath instead of value for github private key --- factory/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/factory/__init__.py b/factory/__init__.py index caf61563..0624d239 100644 --- a/factory/__init__.py +++ b/factory/__init__.py @@ -27,8 +27,9 @@ def make_dbfacade(config: Config) -> DBFacade: def make_github_interface(config: Config) -> GithubInterface: + public_key = open(config.github_key).read() return GithubInterface(DefaultGithubFactory(config.github_app_id, - config.github_key), + public_key), config.github_org_name)