mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-14 23:44:15 +00:00
feat: change github-app-key param to a key-path
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -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,
|
||||
)
|
||||
Reference in new issue
Block a user