When running app-store-connect get-certificate <certificate-id> without --certificate-key argument then the action crashes with the following error:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/codemagic/cli/cli_app.py", line 206, in invoke_cli
CliApp._running_app._invoke_action(args)
File "/usr/local/lib/python3.11/site-packages/codemagic/cli/cli_app.py", line 163, in _invoke_action
return cli_action(**action_args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/codemagic/cli/cli_app.py", line 458, in wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/codemagic/tools/app_store_connect.py", line 706, in get_certificate
assert private_key is not None
^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
Ceritficate key is not necessary unless the certificate is to be saved. Changes in this PR remove the assertion that is causing the action to fail.
When running
app-store-connect get-certificate <certificate-id>
without--certificate-key
argument then the action crashes with the following error:Ceritficate key is not necessary unless the certificate is to be saved. Changes in this PR remove the assertion that is causing the action to fail.
Updated actions
app-store-connect get-certificate