Hey Ben,
You might want to try using the -configfile option instead of passing the cert through cmd_options. I use it to point ZAP to a small config file (for example zap.conf) that contains lines like:
That way ZAP loads all your settings at startup, and you don’t have to deal with long quoted -config strings in the workflow. It’s worked well for me in CI setups like GitHub Actions.
Cheers,
James