Merge pull request #1328 from MODSetter/ci/add-notary-status-workflow

ci: add diagnostic notary-status workflow
This commit is contained in:
Rohan Verma 2026-04-30 20:56:58 -07:00 committed by GitHub
commit d59be442e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

60
.github/workflows/notary-status.yml vendored Normal file
View file

@ -0,0 +1,60 @@
name: Notary status check
# One-off diagnostic workflow. Queries Apple's notary service to see if your
# submissions are queued, in progress, accepted, or rejected. Useful when a
# notarization seems "hung" — most often the queue itself, especially on a
# brand-new Apple Developer account.
#
# Run via: Actions tab -> "Notary status check" -> Run workflow.
# Inputs are optional; if you provide a submission ID, it also fetches that
# submission's full Apple log.
#
# Safe to delete after diagnosis.
on:
workflow_dispatch:
inputs:
submission_id:
description: 'Optional: submission UUID to fetch full Apple log for'
required: false
default: ''
jobs:
status:
runs-on: macos-latest
steps:
- name: List recent notarization submissions
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
run: |
set -euo pipefail
echo "::group::Submission history (most recent first)"
xcrun notarytool history \
--apple-id "$APPLE_ID" \
--password "$APPLE_APP_SPECIFIC_PASSWORD" \
--team-id "$APPLE_TEAM_ID"
echo "::endgroup::"
- name: Inspect specific submission (if id provided)
if: ${{ inputs.submission_id != '' }}
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
SUBMISSION_ID: ${{ inputs.submission_id }}
run: |
set -euo pipefail
echo "::group::Submission info"
xcrun notarytool info "$SUBMISSION_ID" \
--apple-id "$APPLE_ID" \
--password "$APPLE_APP_SPECIFIC_PASSWORD" \
--team-id "$APPLE_TEAM_ID"
echo "::endgroup::"
echo "::group::Apple's processing log for this submission"
xcrun notarytool log "$SUBMISSION_ID" \
--apple-id "$APPLE_ID" \
--password "$APPLE_APP_SPECIFIC_PASSWORD" \
--team-id "$APPLE_TEAM_ID" || true
echo "::endgroup::"