Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.
TypeScript ai-meeting-assistantai-notetakerelectrongranola-alternativelinuxllama-cpplocal-ailocal-firstmacosmcpmeeting-minutesmeeting-notesoffline-firstopen-sourceprivacyspeech-to-texttranscriptionwhisperwhisper-cppwindows
Windows releases sign in to Azure with GitHub's token for the run (signing environment, no stored secret) and are signed as Frigade Inc.
christianmatc80bd7ab297b
diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.ymlindex 395340f3..78d8fd0f 100644--- a/.github/workflows/preview.yml+++ b/.github/workflows/preview.yml@@ -43,6 +43,8 @@ jobs:files: app/dist/Yogurt-linux-*.AppImageruns-on: ${{ matrix.os }}timeout-minutes: 120+ # Azure trusts sign-in tokens from this repository's signing environment only (managed identity yogurt-github-signing)+ environment: ${{ inputs.release && 'signing' || '' }}defaults:run:shell: bash@@ -105,16 +107,22 @@ jobs:# unit tests run in ci.yml; a slower runner here only trips their timing checks- name: Build (helpers, whisper-server, app)run: pnpm -C app build+ # a release signs in to Azure with GitHub's token for this run, so no password or key is stored anywhere+ - name: Sign in to Azure (Windows release)+ if: runner.os == 'Windows' && inputs.release && vars.AZURE_CLIENT_ID != ''+ uses: azure/login@a641126d1b8aa4d1fa005f4f92df94a3a4c4c906 # v3.1.0+ with:+ client-id: ${{ vars.AZURE_CLIENT_ID }}+ tenant-id: ${{ vars.AZURE_TENANT_ID }}+ subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}- name: Packageenv:CSC_IDENTITY_AUTO_DISCOVERY: 'false'# a preview (by hand) was never released: it is marked so it never looks for updates (src/main/updates.ts)PREVIEW: ${{ inputs.release != true }}- # Windows releases are signed by Microsoft's Artifact Signing (account yogurt-signing, East US) once these- # three secrets exist; without them the installer stays unsigned, as before- AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}- AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}- AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}+ # Windows releases are signed by Microsoft's Artifact Signing (account yogurt-signing, East US), using the Azure+ # sign-in above; without the repository's Azure variables the installer stays unsigned+ SIGN: ${{ inputs.release && vars.AZURE_CLIENT_ID != '' }}# the name on the certificate, exactly as Microsoft validated itPUBLISHER: ${{ vars.WINDOWS_PUBLISHER_NAME || 'Frigade Inc.' }}PROFILE: ${{ vars.WINDOWS_CERT_PROFILE || 'yogurt' }}@@ -122,7 +130,7 @@ jobs:cd appset -- ${{ matrix.platform }} --publish never[ "$PREVIEW" = true ] && set -- "$@" -c.extraMetadata.yogurtPreview=true- if [ "$RUNNER_OS" = Windows ] && [ "$PREVIEW" != true ] && [ -n "$AZURE_CLIENT_SECRET" ]; then+ if [ "$RUNNER_OS" = Windows ] && [ "$SIGN" = true ]; thenecho "::notice::Signing the Windows installer as $PUBLISHER"set -- "$@" "-c.win.azureSignOptions.publisherName=$PUBLISHER" -c.win.azureSignOptions.endpoint=https://eus.codesigning.azure.net/ \-c.win.azureSignOptions.codeSigningAccountName=yogurt-signing "-c.win.azureSignOptions.certificateProfileName=$PROFILE"diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 80d9eaf0..9310f25e 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -153,8 +153,10 @@ jobs:with:ref: ${{ needs.plan.outputs.ref }}release: true- # the Windows installer is signed with Artifact Signing once its secrets exist (preview.yml)- secrets: inherit+ # the Windows installer is signed with Artifact Signing: GitHub hands the build a short-lived sign-in token (no stored secret)+ permissions:+ contents: read+ id-token: write# only a pushed tag publishes, and only once all three built; a run by hand never doespublish:diff --git a/app/test/windowsSigning.test.ts b/app/test/windowsSigning.test.tsindex 069b5a1c..f7cc1601 100644--- a/app/test/windowsSigning.test.ts+++ b/app/test/windowsSigning.test.ts@@ -8,11 +8,14 @@ const preview = readFileSync(join(root, '.github/workflows/preview.yml'), 'utf8'const release = readFileSync(join(root, '.github/workflows/release.yml'), 'utf8')describe('Windows signing', () => {- it('release.yml hands its secrets to the Windows build', () => {- expect(release).toMatch(/uses: \.\/\.github\/workflows\/preview\.yml[\s\S]*?secrets: inherit/)+ it('release.yml lets the Windows build ask GitHub for a sign-in token', () => {+ expect(release).toMatch(/uses: \.\/\.github\/workflows\/preview\.yml[\s\S]*?id-token: write/)})- it('a release signs with Artifact Signing only when the secrets are there, and checks the signature', () => {- for (const v of ['AZURE_TENANT_ID', 'AZURE_CLIENT_ID', 'AZURE_CLIENT_SECRET']) expect(preview).toContain(`secrets.${v}`)+ it('a release signs in to Azure with that token (no stored secret), only in the signing environment, and checks the signature', () => {+ expect(preview).not.toContain('AZURE_CLIENT_SECRET')+ expect(preview).toContain("environment: ${{ inputs.release && 'signing' || '' }}")+ expect(preview).toMatch(/uses: azure\/login@[0-9a-f]{40}/)+ for (const v of ['AZURE_TENANT_ID', 'AZURE_CLIENT_ID', 'AZURE_SUBSCRIPTION_ID']) expect(preview).toContain(`vars.${v}`)expect(preview).toContain('azureSignOptions.codeSigningAccountName=yogurt-signing')expect(preview).toContain('azureSignOptions.endpoint=https://eus.codesigning.azure.net/')expect(preview).toContain('Get-AuthenticodeSignature')