feat: change github-app-key param to a key-path

This commit is contained in:
HugoPBrito committed 2024-12-18 11:19:21 +00:00
1 parent 8c5c5f7f3b
commit c40ec4be32
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -229,7 +229,9 @@ class GithubProvider(Provider):
elif github_app_id and github_app_key:
app_id = github_app_id
app_key = github_app_key
with open(github_app_key, "r") as rsa_key:
app_key = rsa_key.read()
self._auth_method = "GitHub App Token"
else:
@@ -29,6 +29,6 @@ def init_parser(self):
github_auth_subparser.add_argument(
"--github-app-key",
nargs="?",
help="GitHub App Key to log in against GitHub",
help="GitHub App Key Path to log in against GitHub",
default=None,
)