Skip to content

Commit d59be44

Browse files
authored
Merge pull request #1328 from MODSetter/ci/add-notary-status-workflow
ci: add diagnostic notary-status workflow
2 parents 16587ec + efb5664 commit d59be44

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Notary status check
2+
3+
# One-off diagnostic workflow. Queries Apple's notary service to see if your
4+
# submissions are queued, in progress, accepted, or rejected. Useful when a
5+
# notarization seems "hung" — most often the queue itself, especially on a
6+
# brand-new Apple Developer account.
7+
#
8+
# Run via: Actions tab -> "Notary status check" -> Run workflow.
9+
# Inputs are optional; if you provide a submission ID, it also fetches that
10+
# submission's full Apple log.
11+
#
12+
# Safe to delete after diagnosis.
13+
14+
on:
15+
workflow_dispatch:
16+
inputs:
17+
submission_id:
18+
description: 'Optional: submission UUID to fetch full Apple log for'
19+
required: false
20+
default: ''
21+
22+
jobs:
23+
status:
24+
runs-on: macos-latest
25+
steps:
26+
- name: List recent notarization submissions
27+
env:
28+
APPLE_ID: ${{ secrets.APPLE_ID }}
29+
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
30+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
31+
run: |
32+
set -euo pipefail
33+
echo "::group::Submission history (most recent first)"
34+
xcrun notarytool history \
35+
--apple-id "$APPLE_ID" \
36+
--password "$APPLE_APP_SPECIFIC_PASSWORD" \
37+
--team-id "$APPLE_TEAM_ID"
38+
echo "::endgroup::"
39+
40+
- name: Inspect specific submission (if id provided)
41+
if: ${{ inputs.submission_id != '' }}
42+
env:
43+
APPLE_ID: ${{ secrets.APPLE_ID }}
44+
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
45+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
46+
SUBMISSION_ID: ${{ inputs.submission_id }}
47+
run: |
48+
set -euo pipefail
49+
echo "::group::Submission info"
50+
xcrun notarytool info "$SUBMISSION_ID" \
51+
--apple-id "$APPLE_ID" \
52+
--password "$APPLE_APP_SPECIFIC_PASSWORD" \
53+
--team-id "$APPLE_TEAM_ID"
54+
echo "::endgroup::"
55+
echo "::group::Apple's processing log for this submission"
56+
xcrun notarytool log "$SUBMISSION_ID" \
57+
--apple-id "$APPLE_ID" \
58+
--password "$APPLE_APP_SPECIFIC_PASSWORD" \
59+
--team-id "$APPLE_TEAM_ID" || true
60+
echo "::endgroup::"

0 commit comments

Comments
 (0)