Skip to content

Commit b4b9ece

Browse files
committed
ci: remove --keychain-password from store-credentials call
The notarize step was failing with: Error: Unknown option '--keychain-password' Usage: notarytool ... store-credentials [--verbose ...] [--key <key>] ... --keychain <keychain>] See 'notarytool ... store-credentials --help' for more information. The --keychain-password flag is only valid for 'xcrun notarytool submit', not for 'xcrun notarytool store-credentials'. The store-credentials command reads the keychain password via the keychain authentication system instead. The keychain is already unlocked by the import step (security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH") and remains unlocked for 6 hours (set-keychain-settings -lut 21600), so by the time the notarize step runs, the keychain is accessible without re-supplying the password. Fix: drop --keychain-password from the store-credentials invocation. Keep it on the submit invocation where it IS valid.
1 parent 5fd0e83 commit b4b9ece

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,15 @@ jobs:
437437
echo "::warning::No keychain (cert secrets not set); skipping notarization."
438438
exit 0
439439
fi
440+
# notarytool store-credentials doesn't accept --keychain-password;
441+
# it requires the keychain to already be unlocked via
442+
# `security unlock-keychain` (which the import step already did).
440443
echo "Recreating notarytool profile '$MACOS_KEYCHAIN_PROFILE' in temp keychain"
441444
xcrun notarytool store-credentials "$MACOS_KEYCHAIN_PROFILE" \
442445
--apple-id "$MACOS_NOTARY_APPLE_ID" \
443446
--team-id "$MACOS_NOTARY_TEAM_ID" \
444447
--password "$MACOS_NOTARY_PASSWORD" \
445-
--keychain "$MACOS_KEYCHAIN_PATH" \
446-
--keychain-password "$MACOS_KEYCHAIN_PASSWORD"
448+
--keychain "$MACOS_KEYCHAIN_PATH"
447449
echo "Submitting for notarization (profile: $MACOS_KEYCHAIN_PROFILE)"
448450
xcrun notarytool submit "$BINARY" \
449451
--keychain-profile "$MACOS_KEYCHAIN_PROFILE" \

0 commit comments

Comments
 (0)