Repository navigation
Description
Expected Behavior
A manually dispatched workflow runs the macOS signing and notarization of a Dashmate package against Apple, with the release secrets, and publishes nothing.
It takes the run ID of a Release Platform run, downloads that run's dashmate-macos-<sha> artifact, signs it, submits it to the notary service and reports Apple's answer, with the notary log on a rejection. Nothing is uploaded to a release.
Current Behavior
Signing and notarization run only inside a real release:
-
release-dashmate-packagesrequiresgithub.event_name == 'release':platform/.github/workflows/release.yml
Lines 384 to 387 in bb78fa2
if: >- !cancelled() && github.event_name == 'release' && needs.build-dashmate-packages.result != 'skipped' -
A manual dispatch of
release.ymlis not a dry run.build-dashmate-packagesneedsrelease-npm, which runs only for a release or annpm-test:tag, so no Dashmate package is built:platform/.github/workflows/release.yml
Lines 35 to 41 in bb78fa2
release-npm: name: Publish NPM packages needs: build-npm # npm trusted publishing currently accepts GitHub-hosted runners only. runs-on: ubuntu-24.04 timeout-minutes: 60 if: github.event_name == 'release' || startsWith(inputs.tag, 'npm-test:') platform/.github/workflows/release.yml
Lines 306 to 310 in bb78fa2
build-dashmate-packages: name: Build Dashmate packages runs-on: ${{ matrix.os }} if: ${{ !inputs.only_drive && !startsWith(inputs.tag, 'npm-test:') }} needs: release-npm The image jobs do run on a dispatch, and they build and push images for the given tag:
platform/.github/workflows/release.yml
Lines 221 to 231 in bb78fa2
release-drive-image: name: Release Drive image if: ${{ !startsWith(inputs.tag, 'npm-test:') }} secrets: inherit uses: ./.github/workflows/release-docker-image.yml with: name: Drive image_org: dashpay image_name: drive target: drive-abci tag: ${{ inputs.tag || github.event.release.tag_name }}
So the certificate, the notary credentials, any change to the step, and Apple's answer on the package contents are first exercised after a release is published. Two current examples:
- The notary login answered 403 on every release since at least 2026-07-23. It was noticed only when ci: build release SDKs and NPM packages on self-hosted runners #4562 made the step fail (ci(release): notarize dashmate macOS packages with an App Store Connect API key #5344).
- The package has carried an unsigned native addon since ci(release): build dashmate packages from the release's own npm tarballs #5235, and Apple has not seen it yet (pack_dashmate.sh tarball mode drops the
cpu-featuresskip, so the macOS package ships an unsigned native addon #5345).
Possible Solution
- A new workflow with
workflow_dispatchonly and one input,run_id. Onemacos-14job withactions: readto download the other run's artifact, and withoutcontents: write. - Move the steps
Install the Apple certificate,Sign macOS installers,Notarize MacOS Release BuildandDelete the Apple keychainfromrelease.ymlinto a composite action used by both workflows, so the rehearsal runs the same code as the release. - Build on ci(release): notarize dashmate macOS packages with an App Store Connect API key #5344, which makes the step fail on a rejection and print the notary log.
v5.0-dev is the default branch, so the workflow can be dispatched as soon as it is merged there.
Limit: the release run keeps its package artifacts for 7 days, so a rehearsal is possible for a week after a release run.
platform/.github/workflows/release.yml
Lines 368 to 374 in bb78fa2
| - name: Upload Dashmate packages | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dashmate-${{ matrix.package_type }}-${{ github.sha }} | |
| path: packages/dashmate/dist/** | |
| if-no-files-found: error | |
| retention-days: 7 |
Alternatives Considered
- Build the package from the dispatched branch instead of reusing an artifact. This gives Apple's answer on unreleased changes, such as the fix for pack_dashmate.sh tarball mode drops the
cpu-featuresskip, so the macOS package ships an unsigned native addon #5345, but needs the JS build on the self-hosted builder. It could be a second mode later. - A
notarize-test:tag prefix inrelease.yml, likenpm-test:. Every other job's condition would have to exclude the new prefix, and a mistake there publishes images. - A local rehearsal with
productsignandnotarytool. It needs theDeveloper ID Installercertificate on a developer's machine.
Additional Context
Related: #5344 (notary login), #5345 (unsigned addon in the package), #4562 (made the notarize step fail on an error).
Activity