Repository navigation
fix(macos): support file-based notarization keychains - #94
Merged
Merged
Conversation
- Add notarize.keychain and TINYJS_NOTARY_KEYCHAIN support - Document setup and cover notarytool arguments with a check script
Owner
|
Thanks @9wick I'll get onto this ASAP |
tarwin
added a commit
that referenced
this pull request
Nov 15, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
|
Merged and released in v0.74.0. Thank you @9wick, this was a really clean PR: small change, thorough docs and schema, a test that runs the real CLI, and a careful write-up of what you checked against Apple. It's credited in the changelog. |
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.
tinyjs notarizecurrently passes--keychain-profiletonotarytool, but provides no way to select a file-based keychain. A profile stored only in an unlocked file-based keychain therefore cannot be found through the default data protection keychain lookup, even though it works when passed directly tonotarytoolwith--keychain.This adds optional
notarize.keychainandTINYJS_NOTARY_KEYCHAINsettings. A configured path is forwarded as a single--keychainargument, with the environment variable taking precedence. Omitting the setting, or usingnullor an empty string, preserves the existing command. Configuration docs and the JSON Schema are updated as well.Example:
{ "notarize": { "profile": "notary-profile", "keychain": "ci.keychain-db" } }Verified on macOS 26.4.1 arm64 with notarytool 1.1.1 (40) and txiki.js 26.6.0:
--keychainand is not found without it.Accepted, followed by successful stapling andstapler validate.TINYJS_NOTARY_KEYCHAINoverrides an invalid config path and completes notarization and stapling. Missing and locked keychains surface errors.Automated checks:
node test/notarize/check.mjs(10 cases covering config precedence, omitted/null/empty values, and paths with spaces or Unicode),node --check cli.js, andpython3 test/config-schema/coverage.py. The keychain-selection regression case also fails against the previous CLI. Verification results are recorded inTODO-verify.md.