From a072cbccafde6b8f759daf010b6b2cc59c1cd387 Mon Sep 17 00:00:00 2001 From: Shauna Gordon-McKeon Date: Fri, 17 Dec 2021 15:42:40 -0500 Subject: [PATCH] Cleanup --- metagov/metagov/plugins/github/utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/metagov/metagov/plugins/github/utils.py b/metagov/metagov/plugins/github/utils.py index 0e1378ed..e58136a7 100644 --- a/metagov/metagov/plugins/github/utils.py +++ b/metagov/metagov/plugins/github/utils.py @@ -11,10 +11,6 @@ logger = logging.getLogger(__name__) -APP_ID = github_settings["APP_ID"] - - - def get_private_key(community): PRIVATE_KEY_PATH = get_configuration("GITHUB_PRIVATE_KEY_PATH", community=community) @@ -31,7 +27,7 @@ def get_jwt(community): payload = { # GitHub App's identifier - "iss": get_configuration("GITHUB_PRIVATE_KEY_PATH", community=community), + "iss": get_configuration("GITHUB_APP_ID, community=community), # issued at time, 60 seconds in the past to allow for clock drift "iat": int(datetime.datetime.now().timestamp()) - 60, # JWT expiration time (10 minute maximum)