forked from tari-project/tari
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): sign windows binaries and installer (tari-project#6550)
Description Sign windows binaries and installer Motivation and Context Secure Windows binaries and installer
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -519,6 +519,24 @@ jobs: | |
name: ${{ env.TS_FILENAME }}-${{ matrix.builds.name }}-${{ env.TARI_VERSION }}.pkg | ||
path: "${{ env.distDirPKG }}/${{ env.TS_FILENAME }}-${{ matrix.builds.name }}-${{ env.TARI_VERSION }}*.pkg*" | ||
|
||
- name: Sign files with Trusted Signing (windows binaries) | ||
if: ${{ ( startsWith(runner.os,'Windows') ) && ( env.AZURE_TENANT_ID != '' ) }} | ||
env: | ||
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | ||
uses: azure/[email protected] | ||
with: | ||
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }} | ||
endpoint: https://eus.codesigning.azure.net/ | ||
trusted-signing-account-name: Tari | ||
certificate-profile-name: Tarilabs | ||
files-folder: ${{ github.workspace }}${{ env.TS_DIST }}/ | ||
files-folder-filter: exe,dll | ||
file-digest: SHA256 | ||
timestamp-rfc3161: http://timestamp.acs.microsoft.com | ||
timestamp-digest: SHA256 | ||
|
||
- name: Build the Windows installer | ||
if: startsWith(runner.os,'Windows') | ||
shell: cmd | ||
|
@@ -533,6 +551,24 @@ jobs: | |
echo "Checksum verification archive is " | ||
${{ env.SHARUN }} --check "${{ env.TS_FILENAME }}-${{ env.TARI_VERSION }}-${{ env.VSHA_SHORT }}-${{ matrix.builds.name }}-installer.exe.sha256" | ||
- name: Sign files with Trusted Signing (windows installer) | ||
if: ${{ ( startsWith(runner.os,'Windows') ) && ( env.AZURE_TENANT_ID != '' ) }} | ||
env: | ||
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | ||
uses: azure/[email protected] | ||
with: | ||
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }} | ||
endpoint: https://eus.codesigning.azure.net/ | ||
trusted-signing-account-name: Tari | ||
certificate-profile-name: Tarilabs | ||
files-folder: ${{ github.workspace }}/buildtools/Output/ | ||
files-folder-filter: exe,dll | ||
file-digest: SHA256 | ||
timestamp-rfc3161: http://timestamp.acs.microsoft.com | ||
timestamp-digest: SHA256 | ||
|
||
- name: Artifact upload for Windows installer | ||
if: startsWith(runner.os,'Windows') | ||
uses: actions/upload-artifact@v4 | ||
|