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

Unlocking an exisiting keychain #566

Closed
xfreebird opened this issue Sep 3, 2015 · 5 comments
Closed

Unlocking an exisiting keychain #566

xfreebird opened this issue Sep 3, 2015 · 5 comments

Comments

@xfreebird
Copy link
Contributor

Hi,

I've been looking through documentation and I haven't seen a way to unlock a specified keychain.
To unlock the keychain a password is required.

Is this action available ?

Usually on CI server the keychain gets locked, especially when the session is run through ssh (despite the fact that the ssh daemon runs in the user ui session).

Any pointers would help.

Cheers,
Nicolae

@KrauseFx
Copy link
Member

KrauseFx commented Sep 4, 2015

I haven't done this myself, but basically you can use the shell command to unlock your Keychain

From https://github.com/KrauseFx/fastlane/blob/80c57b452052e3f89dc646747fac4ccf542e8058/lib/fastlane/actions/create_keychain.rb#L22

sh("security unlock-keychain -p #{escaped_password} #{escaped_name}", log: false)

@KrauseFx
Copy link
Member

KrauseFx commented Sep 4, 2015

You can just add this to your Fastfile

@xfreebird
Copy link
Contributor Author

Thanks @KrauseFx, I am aware of the command line option.
Since there are several existing keychain fastlane actions,
I think it would be great to have and this one in place.

Cheers,
Nicolae

@xfreebird
Copy link
Contributor Author

This was implemented with #580.

@KrauseFx
Copy link
Member

KrauseFx commented Sep 8, 2015

Great, thanks again for your contribution 👍

KrauseFx added a commit that referenced this issue Mar 7, 2016
updated deliver module to use UI Layer
@fastlane fastlane locked and limited conversation to collaborators Sep 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants