Closed zacdemi closed 1 year ago
If you have this error its probably a typo somewhere with your GitHub secrets. Here was my typo - see extra space below after the dollar sign.
name: build-ios-staging
on:
push:
branches:
- "staging"
jobs:
build:
runs-on: macos-latest
environment: staging_environment
steps:
- name: Deploy iOS staging to AppCenter via Fastlane
uses: actions/checkout@v3
- run: yarn fastlane:ios:staging
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APP_CENTER_ACCESS_TOKEN: ${{ secrets.APP_CENTER_ACCESS_TOKEN }}
MATCH_GIT_BASIC_AUTHORIZATION: $ {{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
should be
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
I had the same error. But what helped me is to switch to ssh instead of https in Matchfile and using webfactory/ssh-agent
(https://github.com/marketplace/actions/webfactory-ssh-agent) and setting: SSH_PRIVATE_KEY
in repo secrets variables.
make sure to check if the PAT has expired or if you have regenerated it you will need to reconvert to base 64
New Issue Checklist
Issue Description
^this command works locally, but not inside of GitHub actions. Based on the error message below I would expect a 401 or 403 , but I'm receiving a 400. The
MATCH_GIT_BASIC_ATHORIZATION
Is a base64 encoded personal access token with the correct read access. The verbose error log below. Is there anything I'm missing? ThanksSummary of Match
+----------------------------------------+-------------------------------------------------------+ | Summary for match 2.210.1 | +----------------------------------------+-------------------------------------------------------+ | type | adhoc | | username | apps@xxxxx.com | | app_identifier | ["com.xxxx.xxxx.staging"] | | git_url | https://github.com/xxxxx/ios-certificates.git | | git_basic_authorization | **** | | readonly | false | | generate_apple_certs | true | | skip_provisioning_profiles | false | | team_id | XXXXXXXX | | storage_mode | git | | git_branch | master | | shallow_clone | false | | clone_branch_directly | false | | skip_google_cloud_account_confirmation | false | | keychain_name | login.keychain | | force | false | | force_for_new_devices | false | | include_all_certificates | false | | force_for_new_certificates | false | | skip_confirmation | false | | safe_remove_certs | false | | skip_docs | false | | platform | ios | | derive_catalyst_app_identifier | false | | fail_on_name_taken | false | | skip_certificate_matching | false | | skip_set_partition_list | false | | verbose | false | +----------------------------------------+-------------------------------------------------------+
Command executed
fastlane staging
Complete output when running fastlane, including the stack trace and command used
Environment
Stack
fastlane gems
Loaded fastlane plugins: