Skip to content

Add a manual rehearsal for Dashmate macOS signing and notarization #5346

Closed

Description

@romchornyi

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-packages requires github.event_name == 'release':

    if: >-
    !cancelled()
    && github.event_name == 'release'
    && needs.build-dashmate-packages.result != 'skipped'

  • A manual dispatch of release.yml is not a dry run. build-dashmate-packages needs release-npm, which runs only for a release or an npm-test: tag, so no Dashmate package is built:

    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:')

    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:

    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:

Possible Solution

  • A new workflow with workflow_dispatch only and one input, run_id. One macos-14 job with actions: read to download the other run's artifact, and without contents: write.
  • Move the steps Install the Apple certificate, Sign macOS installers, Notarize MacOS Release Build and Delete the Apple keychain from release.yml into 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.

- 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-features skip, 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 in release.yml, like npm-test:. Every other job's condition would have to exclude the new prefix, and a mistake there publishes images.
  • A local rehearsal with productsign and notarytool. It needs the Developer ID Installer certificate 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

  1. added
    enhancement
    dashmate
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dashmateenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions