You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
Running the command python cli.py --github-token <token here> --conf snyk-sync.yaml --snyk-orgs-file snyk-orgs.yaml --cache-dir cache targets results in an unhandled exception:
Traceback (most recent call last):
File "C:\Users\username\documents\source\prodsec-snyk-config\snyk-sync\snyk_sync\cli.py", line 670, in <module>
app()
File "C:\Users\username\documents\source\prodsec-snyk-config\snyk-sync\.venv\lib\site-packages\typer\main.py", line 214, in __call__
return get_command(self)(*args, **kwargs)
File "C:\Users\username\documents\source\prodsec-snyk-config\snyk-sync\.venv\lib\site-packages\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "C:\Users\username\documents\source\prodsec-snyk-config\snyk-sync\.venv\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\username\documents\source\prodsec-snyk-config\snyk-sync\.venv\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\username\documents\source\prodsec-snyk-config\snyk-sync\.venv\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\username\documents\source\prodsec-snyk-config\snyk-sync\.venv\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "C:\Users\username\documents\source\prodsec-snyk-config\snyk-sync\.venv\lib\site-packages\typer\main.py", line 500, in wrapper
return callback(**use_params) # type: ignore
File "C:\Users\username\documents\source\prodsec-snyk-config\snyk-sync\snyk_sync\cli.py", line 439, in targets
int_id = branch.integrations["github-enterprise"]
KeyError: 'github-enterprise'
Line 436 and 439 of cli.py appears to have a bug - the YAML key github-enterprise is hardcoded. For users who are using regular GitHub and not GitHub Enterprise, these lines will always crash with an error. They should be updated to select the proper integration from configuration rather than being hard-coded.
The text was updated successfully, but these errors were encountered:
Running the command
python cli.py --github-token <token here> --conf snyk-sync.yaml --snyk-orgs-file snyk-orgs.yaml --cache-dir cache targets
results in an unhandled exception:The
snyk-sync.yaml
file has the following:Line 436 and 439 of
cli.py
appears to have a bug - the YAML keygithub-enterprise
is hardcoded. For users who are using regular GitHub and not GitHub Enterprise, these lines will always crash with an error. They should be updated to select the proper integration from configuration rather than being hard-coded.The text was updated successfully, but these errors were encountered: