I’m trying to codesign
a Mac app, and I’ve been following the GitHub guide.
The problem is that my repository secret BUILD_CERTIFICATE_BASE64
is somehow not getting to base64
to decode the certificate.
- name: Install the Apple certificate
# From GitHub docs: https://docs.github.com/en/actions/guides/installing-an-apple-certificate-on-macos-runners-for-xcode-development
if: runner.os == 'macOS'
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
run: |
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
# import certificate and provisioning profile from secrets
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode --output $CERTIFICATE_PATH
# check that it was created properly
ls -l $CERTIFICATE_PATH
This returns a zero-byte at $CERTIFICATE_PATH
I’ve tried a few things, but I can’t figure out why the secret seems empty. I even used gh
CLI to re-import the base64 certificate.
Any ideas? Thanks in advance!