From 10ee41a734445dd541c02c90407737ab2b529af9 Mon Sep 17 00:00:00 2001 From: pajowu Date: Thu, 21 Sep 2023 12:15:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20keychain=20import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/orgs/community/discussions/63731 --- .github/workflows/import_cert.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/import_cert.sh b/.github/workflows/import_cert.sh index a430f4e0..e950f724 100755 --- a/.github/workflows/import_cert.sh +++ b/.github/workflows/import_cert.sh @@ -6,7 +6,9 @@ security default-keychain -s build.keychain security unlock-keychain -p "$MAC_KEY_PASSWORD" build.keychain echo "Importing key" -security import <(echo $MAC_KEY | base64 -d) -P "$MAC_KEY_PASSWORD" -f pkcs12 +echo $MAC_KEY | base64 -d > key.cer +security import key.cer -P "$MAC_KEY_PASSWORD" -f pkcs12 +rm key.cer echo "Trusting Certificate" # Using sudo because overwriting trust settings would require interactive password input