(installation_id: str, app_id: int)
| 51 | |
| 52 | |
| 53 | def generate_token(installation_id: str, app_id: int) -> str: |
| 54 | auth: Auth.AppInstallationAuth = Auth.AppAuth( |
| 55 | app_id=str(app_id), private_key=settings.GITHUB_PEM |
| 56 | ).get_installation_auth( |
| 57 | installation_id=int(installation_id), |
| 58 | token_permissions=None, |
| 59 | ) |
| 60 | Github(auth=auth) |
| 61 | token = auth.token |
| 62 | return token |
| 63 | |
| 64 | |
| 65 | def generate_jwt_token(app_id: int) -> str: |
no outgoing calls
searching dependent graphs…