Skip to content

Commit 14e3cc0

Browse files
committed
Fix iOS workflow shell script to use IOS-prefixed env var names
The env block mapped secrets to IOS_-prefixed variables but the shell script still referenced the old names, causing empty values and a "Unable to decode the provided data" error during certificate import.
1 parent fc7a183 commit 14e3cc0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ios-browserstack-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ jobs:
7777
PP_PATH=$RUNNER_TEMP/build_pp.mobileprovision
7878
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
7979
80-
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
81-
echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH
80+
echo -n "$IOS_BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
81+
echo -n "$IOS_BUILD_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH
8282
83-
security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
83+
security create-keychain -p "$IOS_KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
8484
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
85-
security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
85+
security unlock-keychain -p "$IOS_KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
8686
87-
security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
88-
security set-key-partition-list -S apple-tool:,apple: -k "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
87+
security import $CERTIFICATE_PATH -P "$IOS_BUILD_CERTIFICATE_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
88+
security set-key-partition-list -S apple-tool:,apple: -k "$IOS_KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
8989
security list-keychain -d user -s $KEYCHAIN_PATH
9090
9191
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles

0 commit comments

Comments
 (0)