NokiaTube | New address | Mode Phone | Off high quality for Nokia Browser
Skip to content

ci: Sign ad-hoc when Apple certificates are unavailable - #1303

Merged
oleavr merged 1 commit into
frida:mainfrom
kkuehl:ci/skip-apple-signing-without-secrets
Nov 23, 2026
Merged

oleavr merged 1 commit into
frida:mainfrom
kkuehl:ci/skip-apple-signing-without-secrets

Conversation

@kkuehl

@kkuehl kkuehl commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

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.

  CERTIFICATES_P12: 
security: SecKeychainItemImport: Unable to decode the provided data.

Recent fork PRs all show it at that step, for example #1301 and #1302; same-repo PRs and pushes to main pass it.

Change

When the certificates are empty and the event is pull_request, the action exports - as each *_CERTID and stops, so tools/post-process.py signs 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.

@kkuehl kkuehl closed this Nov 23, 2026
@kkuehl kkuehl reopened this Nov 23, 2026
@oleavr
oleavr marked this pull request as ready for review November 23, 2026 19:45
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
oleavr force-pushed the ci/skip-apple-signing-without-secrets branch from 3ec374e to 26d5f8d Compare November 23, 2026 19:50
@oleavr
oleavr merged commit 26d5f8d into frida:main Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants