Add inputs for code signing#49
Conversation
1e46c6b to
62f76f9
Compare
83401b7 to
62f76f9
Compare
|
I'd like to pass commands to |
|
This is very thorough! Thank you.
Our action leaves the system in a state where you can use the selected Xcode after the action itself has run, so this is consistent with that. The difference of course is that this is exposing secrets to other tooling and, as we know, these scripts get attacked (eg. codecov’s was recently for a long time). The general attitude in this sector is that utility trumps security (which is probably not good, but is what it is). So provided people will find it useful, the way you have written it I think is right choice. For now. Great work. |
|
I'm at a loss for why the checks are failing with Swift 5.5, currently Xcode 13 Beta 3 on the Any ideas? |
I think I'm close to completing this. Converting to a draft in the meantime. |
|
🔒 We now pass commands to |
93d73cc to
676604b
Compare
Maybe we need to specify the macOS destination now? |
|
I’ll force a cron run and see if that fails too. If so, yeah, seems like. I'll fix on main branch. https://github.com/mxcl/xcodebuild/actions/runs/1087802085 |
|
Fixed in #51. Or at least the test I added failed then passed. Rebase or merge! |
676604b to
8818d9a
Compare
|
Rebased from |
Addresses #45.
Added inputs:
code-sign-certificatecode-sign-certificate-passphrasecode-sign-identityThere's a healthy dose of paranoia here. Secrets are registered upon input/creation to help prevent accidental disclosure. The keychain database and certificate unfortunately must be written to disk given the
/usr/bin/securityCLI. However, they are written to UUID-named files underRUNNER_TEMPand are removed immediately after use, even after a failure. The keychain is secured with a UUID password.The temporary keychain we create for the imported certificate is removed in a
postaction, enabling the user to invoke other actions that make use of the certificate. Perhaps this is too generous, and we should clean it up in afinallyblock after invokingxcodebuild?I've validated the new functionality in my private repository. I'm not sure how best to test this via
checks.yml. Maybe using a dummy self-signed certificate?