ci(release): sign only Windows PE files, hash after signing
This commit is contained in:
@@ -107,14 +107,10 @@ jobs:
|
|||||||
path: dist
|
path: dist
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
||||||
- name: Generate SHA256SUMS
|
# Optional Azure Trusted Signing (OIDC federation). Signs only Windows PE
|
||||||
shell: bash
|
# files (Authenticode applies to PE/MSI; the linux/darwin binaries are
|
||||||
run: |
|
# already self-identifying). Runs only when the Azure secrets exist;
|
||||||
cd dist
|
# otherwise the artifacts ship unsigned.
|
||||||
sha256sum * | tee SHA256SUMS
|
|
||||||
|
|
||||||
# Optional Azure Trusted Signing (OIDC federation). Runs only when the
|
|
||||||
# Azure secrets are configured; otherwise the artifacts ship unsigned.
|
|
||||||
- name: Sign with Azure Trusted Signing
|
- name: Sign with Azure Trusted Signing
|
||||||
if: env.AZURE_TENANT_ID != ''
|
if: env.AZURE_TENANT_ID != ''
|
||||||
uses: azure/login@v2
|
uses: azure/login@v2
|
||||||
@@ -130,7 +126,15 @@ jobs:
|
|||||||
endpoint: ${{ secrets.AZURE_TS_ENDPOINT }}
|
endpoint: ${{ secrets.AZURE_TS_ENDPOINT }}
|
||||||
trusted-signing-account-name: ${{ secrets.AZURE_TS_ACCOUNT }}
|
trusted-signing-account-name: ${{ secrets.AZURE_TS_ACCOUNT }}
|
||||||
certificate-profile-name: ${{ secrets.AZURE_TS_CERT_PROFILE }}
|
certificate-profile-name: ${{ secrets.AZURE_TS_CERT_PROFILE }}
|
||||||
files: dist/**
|
files: |
|
||||||
|
dist/*.exe
|
||||||
|
|
||||||
|
# Hash AFTER signing so SHA256SUMS matches what ships.
|
||||||
|
- name: Generate SHA256SUMS
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cd dist
|
||||||
|
sha256sum * | tee SHA256SUMS
|
||||||
|
|
||||||
- name: Attach to release
|
- name: Attach to release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
|
|||||||
Reference in New Issue
Block a user