
The name you give it can later be used to retrieve the secret's value from within a workflow as we'll see in the following sections.įastlane provides multiple methods to authenticate with the App Store Connect API using an API key. You'll be shown a page where you can create a secret and give it any name you want.Click on the 'New Repository Secret' button.Select the 'Actions' row from the expanded 'Secrets and Variables' section.Open the 'Settings' page for your app's repository on GitHub (1) and expand the 'Secrets and Variables' section from the menu on the left (2).Creating an action secretįirst, let's see how we can create a secret and make it available to a GitHub Actions workflow:
/cdn.vox-cdn.com/uploads/chorus_image/image/48891407/2016218_1920x1080_FastlaneMatch_CharlotteBrieBella--748daf16a418a50f58aa4508676bf74a.0.0.jpg)
While I'll be using GitHub Actions in this article, the approach to save secrets will be very similar across most CI providers. I find that the best place to store the new App Store Connect API key is in the CI provider's secrets section. Fastlane needs to know both these values to validate the App Store Connect API key.
#Fastlane match ci how to
This article will also show you how to safely store the key we'll create and make it available to GitHub Actions workflows. I have created an App Store Connect API key and used it in Fastlane in the past but I recently found myself having to google a great part of this process again.įor this reason, I decided to put together an all you need to know guide on authentication with App Store Connect API keys in Fastlane. In fact, using an API key solves one of the most common CI issues people tend to have when communicating with App Store Connect: 2 factor authentication (2FA) requiring user input in an automated process.
#Fastlane match ci free
I decided to use GitHub Actions as it is the CI provider I am most familiar with.įor a robust authentication and hassle free interaction with App Store Connect (ASC), Fastlane recommends that you use an App Store API Key. I have recently had to set up a Continuous Integration/Continuous Development (CI/CD) pipeline for one of my side projects to upload an app to Testflight using Fastlane. Release management by mobile engineers, for mobile engineers.
