Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[match] prompt for keychain password to set partition list for certificates to disable xcode prompt for password on sign #16448

Merged
merged 2 commits into from
May 11, 2020

Conversation

joshdholtz
Copy link
Member

@joshdholtz joshdholtz commented May 11, 2020

Motivation and Context

Fixes #14196
Entering the keychain password used for certificate signing (usually login) required storing the keychain password in an environment variable or passing it in via options which was pretty insure. This will allow for a prompt of the password and store the password for the keychain in the keychain to use later.

Description

  1. Uses password if given
  2. Uses keychain password from login keychain if found
  3. Prompts user for keychain password and stores it in login keychain for user later

Also fixed broken match tests that were using allow instead of expect for some Open3 commands. The Open3 command weren’t getting mocked properly so the inside was never getting executed which means not all of the things were getting tested properly 🤷‍♂️

Testing Steps

  1. Nuke all existing certs
  2. Run match
  • Will prompt for keychain password
  1. Look in Keychain Access for fastlane_keychain_<keychain_name> entry
  2. Nuke all certs again
  3. Run match again
  • There won’t be any prompt

@joshdholtz joshdholtz force-pushed the joshdholtz-match-prompt-keychain-password branch from 7936d2a to 7a6d5f6 Compare May 11, 2020 13:13
@joshdholtz joshdholtz changed the title [match] prompt for keychain password to set partition list for certif icates to disable xcode prompt for password on sign [match] prompt for keychain password to set partition list for certificates to disable xcode prompt for password on sign May 11, 2020
@joshdholtz joshdholtz force-pushed the joshdholtz-match-prompt-keychain-password branch from 7a6d5f6 to 44a52d7 Compare May 11, 2020 15:44
@joshdholtz joshdholtz requested a review from snatchev May 11, 2020 15:48
…icates to disable xcode prompt for password on sign
@joshdholtz joshdholtz force-pushed the joshdholtz-match-prompt-keychain-password branch from 44a52d7 to 0935b99 Compare May 11, 2020 16:46
Copy link
Member

@snatchev snatchev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@joshdholtz joshdholtz merged commit 334d378 into master May 11, 2020
@joshdholtz joshdholtz deleted the joshdholtz-match-prompt-keychain-password branch May 11, 2020 23:32
Copy link

@fastlane-bot fastlane-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulations! 🎉 This was released as part of fastlane 2.147.0 🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fastlane match isn't prompting me for my keychain password
4 participants