Skip to content

Commit dfc041a

Browse files
authored
Merge pull request #2123 from StoDevX/non-2fa-appleid
Use an Apple ID without two-factor auth enabled for Fastlane / Testflight
2 parents bf050db + 97527f4 commit dfc041a

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

.travis.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,28 @@ env:
22
# To update the secure tokens, run `travis encrypt NAME='VALUE' --add` after
33
# installing the travis gem with `gem install travis`.
44
global:
5-
# `match` keychain info – the values don't matter, they're defined
6-
# here so they're consistent throughout
7-
- MATCH_KEYCHAIN_NAME=travis-ios-keychain
8-
- MATCH_KEYCHAIN_PASSWORD=alpine
9-
# dirty hack for https://github.com/travis-ci/travis-ci/issues/5092
10-
- PATH=${PATH/\.\/node_modules\/\.bin/}
5+
# variables from the web interface:
6+
# - BOT_ITC_PASSWORD_FOR_FASTLANE
7+
# - BUGSNAG_KEY: api key for Bugsnag connection
8+
# - CI_USER_TOKEN: unknown
9+
# - DANGER_GITHUB_API_TOKEN: api key to let Danger write comments to github
10+
# - FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: app-specific password for the iTMS Transporter (obselete)
11+
# - FASTLANE_PASSWORD: password for apple id used by fastlane
12+
# - FASTLANE_SESSION: if fastlane's apple ID has 2fa enabled, this is the 1-month 2fa session cookie
13+
# - GCAL_KEY: google calendar API key
14+
# - GH_TOKEN: unknown
15+
# - GITHUB_PAGES_TOKEN: token to push to gh-pages
16+
# - GMAPS_KEY: google maps API key
1117
# sets our node version in one nice place
1218
- TRAVIS_NODE_VERSION=8
1319
# set the ruby version up top
1420
- TRAVIS_RUBY_VERSION=ruby-2.4.2
1521
# configure fastlane a bit
1622
- FASTLANE_SKIP_UPDATE_CHECK=1
1723
- FASTLANE_DISABLE_ANIMATION=1
18-
# GH_TOKEN:
19-
# - used by greenkeeper to update package-lock.json
24+
# bypass the 2fa auth for fastlane
25+
- FASTLANE_PASSWORD="$BOT_ITC_PASSWORD_FOR_FASTLANE"
26+
# this is `GH_TOKEN`: used by greenkeeper to update package-lock.json
2027
- secure: s2HicpDrioxVuS/1KyDMgFkgbM3eVxp1FVF1R922oKeUGhtNFERufXp+nXaG98trqmJhfjfx243i7qP8oEX1DoGtFAHAuILBG0KTXoY1HZG/ZlVpc2pjRQmfCt3tJCs8Trovv2q2yM21JtTKXJ6wZ+XUGK0zqXbd4IH7k30Q649CIZ+l/pcU4cVqoLojekFWMQuW9onPOiTGtBckdPngmJ9GgAGDQesYjZ/p5RTaggCleD4oFmgkUdPZtityr+6TYe6cU9fFIVHyxe5F4JsiXB2aKk0qbX86tXUdlneOTYAw0YsxzVbpjtjVeedG3lm+UDAABznaqyuj4EI2+ERIXEMXtDzG+knQuQIF1P9E5ZWRanuSbfwFRJecPXyw03AtT+lBEHls1klRFep0yYzSKPunuqyeFZG+QFFtiegPnk7C4R2KfJhghB8kr8Ysgwg1YJXP77AaTBET0YsEvhMNNqEGK0LsXhZJUCWUnZfINFwp8ggEB8ZHWqWmTD2SxufqWXCzcMBnNdyuoDAH8//myA/09UcxzRpQwBqy3wH/Nlb47n+RydQxxiSmpTw0xAa5f9/qRjy0DrIT0PowDN1VGLgy6wQIqzAN6Ex4Y7AIyaTZrga7cbpfHE7lKee8XTTfDJnfGywJ1+3CqpZpA1jQhRzeGQbxPfghaOxzI46i4p4=
2128

2229

@@ -46,6 +53,13 @@ stages:
4653
x-definitions:
4754
- &base
4855
before_install:
56+
# dirty hack for https://github.com/travis-ci/travis-ci/issues/5092
57+
- export PATH="${PATH/\.\/node_modules\/\.bin/}"
58+
59+
# finish bypassing 2fa auth for fastlane
60+
- unset FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD
61+
- unset FASTLANE_SESSION
62+
4963
# print some travis debugging info
5064
- echo "Now testing on $TRAVIS_OS_NAME"
5165
- echo "Travis branch is $TRAVIS_BRANCH"

fastlane/Appfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
app_identifier 'NFMTHAZVS9.com.drewvolz.stolaf'
33

44
# Your Apple email address
5-
5+
66

77
# Your Apple Developer Team ID, if you are in multiple teams
88
team_id 'TMK6S7TPX2'

fastlane/Matchfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
git_url 'https://github.com/hawkrives/aao-keys'
22

33
# Your Apple Developer Portal username
4-
4+

0 commit comments

Comments
 (0)