Commit 2676255
committed
[CI] Staple the app as well as the image, and verify the drag-installed copy
A notarization ticket stapled only to the .dmg covers the download, but the app
the user drags out of it carries none. Its first launch then depends on
Gatekeeper reaching Apple, so a user who is offline, behind a captive portal or
on a restricted network is told "Apple could not verify ... is free of malware"
-- the exact dialog this pipeline exists to prevent. Stapling was gated to the
release branch to save a second Apple round trip; a minute of CI is not worth
that risk, so it now happens wherever notarization does.
The verification step was checking the app while it still sat on the mounted
image, which is not the object the user runs. It now dittos the app out, marks
the copy with the quarantine attribute a browser sets, and asserts against that
copy: the ticket travels with it (stapler validate, so first launch needs no
network) and Gatekeeper accepts it (spctl --type exec). The image itself is
checked the same way a downloaded file would be.
Signed-off-by: Christian Parpart <christian@parpart.family>1 parent 5805045 commit 2676255
1 file changed
Lines changed: 32 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
456 | 459 | | |
457 | 460 | | |
458 | 461 | | |
| |||
656 | 659 | | |
657 | 660 | | |
658 | 661 | | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
665 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
666 | 687 | | |
667 | 688 | | |
668 | 689 | | |
| |||
0 commit comments