Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Sign auth windows binary using trust store

Neeraj Gupta5138898d7371
diff --git a/.github/workflows/auth-release.yml b/.github/workflows/auth-release.yml
index 9a251fe0d4..97d079a681 100644
--- a/.github/workflows/auth-release.yml
+++ b/.github/workflows/auth-release.yml
@@ -141,6 +141,7 @@ jobs:
build-windows:
runs-on: windows-latest
+ environment: "auth-win-build"
defaults:
run:
@@ -174,14 +175,22 @@ jobs:
- name: Retain Windows EXE and DLLs
run: cp -r build/windows/x64/runner/Release ente-${{ github.ref_name }}-windows
- - name: Code sign Windows installer and EXE
- uses: dlemstra/code-sign-action@v1
+ - name: Sign files with Trusted Signing
+ uses: azure/trusted-signing-action@v0
with:
- certificate: "${{ secrets.WINDOWS_CERTIFICATE }}"
- password: "${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}"
- files: |
- auth/artifacts/ente-${{ github.ref_name }}-installer.exe
- auth/ente-${{ github.ref_name }}-windows/auth.exe
+ azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
+ azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
+ azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }}
+ endpoint: ${{ secrets.AZURE_ENDPOINT }}
+ trusted-signing-account-name: ${{ secrets.AZURE_CODE_SIGNING_NAME }}
+ certificate-profile-name: ${{ secrets.AZURE_CERT_PROFILE_NAME }}
+ files: |
+ ${{ github.workspace }}/auth/artifacts/ente-${{ github.ref_name }}-installer.exe
+ ${{ github.workspace }}/auth/ente-${{ github.ref_name }}-windows/auth.exe
+ file-digest: SHA256
+ timestamp-rfc3161: http://timestamp.acs.microsoft.com
+ timestamp-digest: SHA256
+
- name: Zip Windows EXE and DLLs
run: tar.exe -a -c -f artifacts/ente-${{ github.ref_name }}-windows.zip ente-${{ github.ref_name }}-windows