Fix native agent release lifecycle verification

This commit is contained in:
rcourtman 2026-07-10 01:49:38 +01:00
parent a0170d3252
commit 11bf0c9e74
4 changed files with 83 additions and 12 deletions

View file

@ -131,9 +131,21 @@ jobs:
--key AuthKey.p8 \
--key-id "$APPLE_NOTARY_KEY_ID" \
--issuer "$APPLE_NOTARY_ISSUER_ID" \
--wait
--wait \
--output-format json > notarization-result.json
python3 - <<'PY'
import json
from pathlib import Path
result = json.loads(Path('notarization-result.json').read_text())
if result.get('status') != 'Accepted':
raise SystemExit(f"Apple notarization was not accepted: {result.get('status', 'unknown')}")
PY
for binary in native-agent-binaries/pulse-agent-darwin-*; do
spctl --assess --type execute --verbose=2 "$binary"
# Gatekeeper's spctl app assessment rejects bare command-line
# Mach-O binaries even when the notary service accepted them.
# Verify the signed bytes that will be packaged instead.
codesign --verify --deep --strict --verbose=2 "$binary"
done
- name: Upload signed macOS binaries