Skip to content

Commit 19f28ee

Browse files
committed
update decode method -- not needed
1 parent c2f8359 commit 19f28ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detect_secrets_stream/github_client/github_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _refresh_jwt_token(self):
5151
}
5252

5353
jwt_token = jwt.encode(payload, self._app_private_key, algorithm='RS256')
54-
self._app_github = GitHub(token_list=[jwt_token.decode('ascii')])
54+
self._app_github = GitHub(token_list=[jwt_token])
5555

5656
def _get_installation_id(self, org_or_repo):
5757
""" Gets the installation id of the app for the given org, repo, or user.

0 commit comments

Comments
 (0)