Run spaceauth and get FASTLANE_SESSION on CI without UI.interactive #17012
Unanswered
lukaszgieraltowski
asked this question in
Ideas
Replies: 2 comments 1 reply
-
I can get the 2FA code using an Apple Script as the pipieline agent is located on my macOS machine. However, I just don't know how to:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@amirvenus you should integrate App Store Connect API. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone 👋
Problem:
If I generate the
FASTLANE_SESSION
for different region locally than my CI machine works, the session will expire in 24h instead 30 days.I'm not able to run
spaceauth
remotely because that command requires user interaction in the middle of the process (putting received SMS code).Docs:
That issue has been already described in Fastlane docs::
Previous solution:
It doesn't work since Apple forced two factor authentication for new Apple ID accounts.
Proposed solution:
Create a job/pipeline on remote machine executing
spaceauth
from that machine region in two stages:FASTLANE_SESSION
.POC:
I tested proposed solution on Azure DevOps Microsoft-hosted agents.
Well, the Microsoft don't guarantee the immutability of the region of remote machines (source), but the session is not expiring anymore.
PR: #17011
How to execute POC:
fastlane_user
,fastlane_password
,fastlane_phone_number
,fastlane_sms_code
(empty)fastlane_sms_code
with received code.FASTLANE_SESSION
.Beta Was this translation helpful? Give feedback.
All reactions