mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-25 14:58:20 -05:00
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 e4e00e9746)
This commit is contained in:
1 parent
db77fae73c
commit
b02ce52cc8
1 file changed
+11
@@ -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
|
||||
|
||||
Reference in new issue
Block a user