File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,15 +50,15 @@ def get_token():
5050 token = GITHUB_TOKEN
5151 elif args .mode == "app-auth" :
5252 app_auth_id = APP_AUTH_ID
53- APP_AUTH_PRIVATE_KEY_B64 = decode_base64 (APP_AUTH_PRIVATE_KEY_B64 )
53+ app_auth_private_key_b64 = decode_base64 (APP_AUTH_PRIVATE_KEY_B64 )
5454 app_auth_installation_id = APP_AUTH_INSTALLATION_ID
5555 app_auth_base_url = APP_AUTH_BASE_URL
5656
5757 now = datetime .datetime .utcnow ()
5858 iat = int ((now - datetime .datetime (1970 , 1 , 1 )).total_seconds ())
5959 exp = iat + 600
6060 payload = {"iat" : iat , "exp" : exp , "iss" : app_auth_id }
61- encoded_jwt = jwt .encode (payload , APP_AUTH_PRIVATE_KEY_B64 , algorithm = "RS256" )
61+ encoded_jwt = jwt .encode (payload , app_auth_private_key_b64 , algorithm = "RS256" )
6262 headers = {
6363 "Authorization" : f"Bearer { encoded_jwt } " ,
6464 "Accept" : "application/vnd.github.v3+json" ,
You can’t perform that action at this time.
0 commit comments