Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunagm committed Dec 17, 2021
1 parent d803725 commit a072cbc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions metagov/metagov/plugins/github/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit a072cbc

Please sign in to comment.