Commit 1969a5e5818 for nodejs

commit 1969a5e5818f2318c9ee053a562d146701dda4a0
Author: Ulises Gascon <ulisesgascongonzalez@gmail.com>
Date:   Tue Nov 17 13:22:46 2026 +0100

    tools: check notarization status when verifying macOS binaries

    Signed-off-by: Ulises Gascon <UlisesGascon@users.noreply.github.com>
    PR-URL: https://github.com/nodejs/node/pull/67541
    Reviewed-By: Stewart X Addison <sxa@redhat.com>
    Reviewed-By: Filip Skokan <panva.ip@gmail.com>

diff --git a/tools/osx-notarize.sh b/tools/osx-notarize.sh
index c9b50a2f3b6..2dcd0040547 100755
--- a/tools/osx-notarize.sh
+++ b/tools/osx-notarize.sh
@@ -91,7 +91,7 @@ notarize_binary() {
   # There is nothing to staple to a bare binary, so the only way to confirm
   # the ticket is live is to have codesign look it up. spctl cannot be used
   # here: it rejects command line tools with "does not seem to be an app".
-  if ! retry codesign --verify --verbose=2 -R=notarized "$1"; then
+  if ! retry codesign --verify --verbose=2 --check-notarization -R=notarized "$1"; then
     echo "error: $1 will not be accepted by Gatekeeper!" 1>&2
     exit 1
   fi