Repository navigation
ci: Sign ad-hoc when Apple certificates are unavailable - #1303
Merged
Merged
Conversation
Secrets are not exposed to pull requests from forks, so the certificate import failed with "Unable to decode the provided data" and the macOS and iOS jobs never got as far as building. Fall back to ad-hoc signing for pull requests in that case, which is enough to build. Pushes and tags still require the certificates.
oleavr
force-pushed
the
ci/skip-apple-signing-without-secrets
branch
from
November 23, 2026 19:50
3ec374e to
26d5f8d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull requests from forks can never pass the macOS and iOS jobs: repository secrets are not exposed to them, so "Set up Apple certificates" fails on an empty p12 before anything is built, and "Build FridaCore.xcframework" then fails for want of the macOS devkit.
Recent fork PRs all show it at that step, for example #1301 and #1302; same-repo PRs and pushes to
mainpass it.Change
When the certificates are empty and the event is
pull_request, the action exports-as each*_CERTIDand stops, sotools/post-process.pysigns ad-hoc (codesign -f -s -). Fork PRs then get real macOS and iOS compile coverage. Pushes and tags are unaffected: without certificates they still fail as they do today.Status
Draft until this PR's own run shows it works. I could not test it beforehand: it needs a macOS runner without the secrets, which is exactly what this run is. CI does not run tests on macOS and the iOS test steps are disabled, so building is all the ad-hoc identity has to support here.
If you would rather skip the Apple jobs for fork PRs than build them unsigned, say so and I will change it to that.