Skip to content

Commit

Permalink
chore(ci): encode github toke
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ghorbani committed Nov 28, 2024
1 parent 7bf8c14 commit 6d02cf3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ platform :ios do
in_house: false
)

# Helper method to encode GitHub token
def encoded_github_token
require 'base64'
Base64.strict_encode64("x-access-token:#{ENV['MATCH_GITHUB_TOKEN']}")
end

match(
type: "appstore",
readonly: true,
api_key: api_key,
git_branch: "master",
#password: ENV['MATCH_PASSWORD'], # will be picked up from environment variables
git_basic_authorization: ENV['MATCH_GITHUB_TOKEN']
git_basic_authorization: encoded_github_token
)

build_ios_app(
Expand Down

0 comments on commit 6d02cf3

Please sign in to comment.