Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions gh_org_mgr/_gh_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ def login(

# Decide how to login. If app set, prefer this
if self.gh_app_id and self.gh_app_private_key:
logging.debug("Logging in via app %s", self.gh_app_id)
auth = Auth.AppAuth(app_id=self.gh_app_id, private_key=self.gh_app_private_key)
gh_app_id_sanitized = str(self.gh_app_id).strip("'").strip('"')
logging.debug("Logging in via app %s", gh_app_id_sanitized)
auth = Auth.AppAuth(app_id=gh_app_id_sanitized, private_key=self.gh_app_private_key)
app = GithubIntegration(auth=auth)
try:
installation = app.get_org_installation(org=orgname)
Expand Down
Loading