Skip to content

Commit e6f8c56

Browse files
fix: write base64 to file before decoding to avoid shell corruption
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3c1c052 commit e6f8c56

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/release-ios.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ jobs:
7575
run: |
7676
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
7777
PP_PATH=~/Library/MobileDevice/Provisioning\ Profiles/e529cf17-07cc-43e0-94dd-3e2384d002ce.mobileprovision
78-
printf '%s' "$IOS_PROVISION_PROFILE" | base64 --decode > "$PP_PATH"
79-
# Verify profile was written correctly
80-
ls -la "$PP_PATH"
81-
security cms -D -i "$PP_PATH" | head -5
78+
# Write base64 to temp file first to avoid shell interpretation issues
79+
printenv IOS_PROVISION_PROFILE > $RUNNER_TEMP/pp_b64.txt
80+
base64 --decode -i $RUNNER_TEMP/pp_b64.txt -o "$PP_PATH"
81+
# Verify — expected MD5: 445debe413481bd2085dddab92a78c14
82+
echo "Decoded profile size: $(wc -c < "$PP_PATH") bytes (expected: 14383)"
83+
echo "Decoded profile MD5: $(md5 -q "$PP_PATH")"
8284
8385
- name: Sync version to Xcode project
8486
run: |

0 commit comments

Comments
 (0)