Skip to content

Commit 7aa395a

Browse files
committed
fix: use clean MATCH_GIT_TOKEN secret for TestFlight auth
Replace base64-decoded MATCH_GIT_BASIC_AUTHORIZATION with plain MATCH_GIT_TOKEN for GitHub HTTPS git authentication. GitHub requires the token directly, not base64(username:token) format. This fixes fastlane match authentication failures in TestFlight workflow.
1 parent 529dc59 commit 7aa395a

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/testflight-beta.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,13 @@ jobs:
139139
env:
140140
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
141141
MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }}
142-
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
142+
MATCH_GIT_TOKEN: ${{ secrets.MATCH_GIT_TOKEN }}
143143
run: |
144144
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
145145
146-
# Decode the basic auth and extract just the token (after the colon)
147-
# MATCH_GIT_BASIC_AUTHORIZATION is base64(username:token)
148-
DECODED_AUTH=$(echo "$MATCH_GIT_BASIC_AUTHORIZATION" | base64 -d)
149-
TOKEN="${DECODED_AUTH##*:}" # Extract everything after the colon
150-
151146
# Configure git to use token-based authentication
152-
git config --global url."https://git:${TOKEN}@github.com/".insteadOf "https://github.com/"
147+
# MATCH_GIT_TOKEN is the plain PAT token (not base64 encoded)
148+
git config --global url."https://git:${MATCH_GIT_TOKEN}@github.com/".insteadOf "https://github.com/"
153149
154150
fastlane match appstore \
155151
--readonly \

0 commit comments

Comments
 (0)