From b02ce52cc8bdd658e91e2ccf172d94d29891af8a Mon Sep 17 00:00:00 2001 From: SoftFever <103989404+SoftFever@users.noreply.github.com> Date: Wed, 28 Oct 2026 02:36:20 +0800 Subject: [PATCH] Fix macOS notarization stapling failing on GitHub-hosted runners (#16939) Since mid-October, `xcrun stapler staple` on GitHub-hosted macOS runners loses its connection to Apple's ticket service (-1005, Error 68) after notarization is accepted, and all three retries fail. The stapler fetches the ticket over HTTP/3 on UDP 443, which the hosted runners drop (actions/runner-images#14924). A new step blocks outbound UDP 443 before signing, so the stapler uses TCP. It is skipped on self-hosted runners, where the firewall rule would outlive the job. (cherry picked from commit e4e00e974649abf125fa890b3f4ecb8360de7d41) --- .github/workflows/build_orca.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build_orca.yml b/.github/workflows/build_orca.yml index 8880009c19..8c1b8134b7 100644 --- a/.github/workflows/build_orca.yml +++ b/.github/workflows/build_orca.yml @@ -253,6 +253,17 @@ jobs: run: | ./build_release_macos.sh -u -x ${{ !vars.SELF_HOSTED && '-j 3' || '' }} -a universal -t 10.15 + # xcrun stapler fetches the notarization ticket over HTTP/3 (UDP 443), + # which GitHub-hosted macOS runners drop, failing with Error 68 + # (actions/runner-images#14924). Blocking UDP 443 makes it fall back to + # TCP. Skipped on self-hosted runners, where the pf rules would outlive + # the job. + - name: Force stapler onto TCP + if: github.repository == 'OrcaSlicer/OrcaSlicer' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) && runner.os == 'macOS' && inputs.macos-combine-only && !vars.SELF_HOSTED + run: | + echo "block return out quick proto udp from any to any port 443" | sudo pfctl -f - + sudo pfctl -E + # Thanks to RaySajuuk, it's working now - name: Sign app and notary if: github.repository == 'OrcaSlicer/OrcaSlicer' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) && runner.os == 'macOS' && inputs.macos-combine-only