import-codesign-certs icon indicating copy to clipboard operation
import-codesign-certs copied to clipboard

p12 certificate as a secret?

Open L4ZZA opened this issue 4 years ago • 2 comments

Hi there,

I've been trying to build an iOS app for days using github actions nobody seems to share to do that from start to finish.

Once I get the p12 binary file from a mac keychain acces, how can I "add it as a secret" so that your actions recognises it if it is a binary file and the secrets input only allows text?

L4ZZA avatar Feb 09 '21 11:02 L4ZZA

@L4ZZA You can encode it to a base64 string: base64 <certificate_name>.p12 | pbcopy. And paste copied text into secrets.

solid-maxim avatar Feb 11 '21 12:02 solid-maxim

Since I was using some custom bash before migrating to this I had already done that part but I do think for people first arriving here it would be useful to have a basic guide in the README.

abemedia avatar Apr 03 '21 14:04 abemedia