Skip to content

Commit

Permalink
Fix GitHub App auth
Browse files Browse the repository at this point in the history
  • Loading branch information
mwkaufman committed May 19, 2020
1 parent ac610cd commit 62a6c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codepipeline-status-reporter/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
def get_access_token(secret_value: str):
iat = int(time.time())
exp = iat + 600
encoded_jwt = jwt.encode({'iat': iat, 'exp': exp, 'iss': github_app_id}, token, algorithm='RS256')
encoded_jwt = jwt.encode({'iat': iat, 'exp': exp, 'iss': github_app_id}, secret_value, algorithm='RS256')
github_access_token_url = github_base + "/app/installations/{github_app_install_id}/access_tokens"
url = github_access_token_url.format(github_app_install_id=github_app_install_id)
headers = {
Expand Down

0 comments on commit 62a6c95

Please sign in to comment.