|
8 | 8 | - 'v*.*.*' |
9 | 9 |
|
10 | 10 | permissions: |
| 11 | + id-token: write |
11 | 12 | contents: read |
12 | 13 |
|
13 | 14 | jobs: |
@@ -79,20 +80,27 @@ jobs: |
79 | 80 | $content = $content.Replace('${{ github.workspace }}', '..') |
80 | 81 | $content | Set-Content obj/signlist.txt |
81 | 82 |
|
| 83 | + - name: Login to Azure |
| 84 | + uses: azure/login@v2 |
| 85 | + with: |
| 86 | + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} |
| 87 | + client-id: ${{ secrets.TRUSTED_SIGNING_CLIENT_ID }} |
| 88 | + tenant-id: ${{ secrets.AZURE_TENANT_ID }} |
| 89 | + |
82 | 90 | - name: Sign NetOffice libraries |
83 | 91 | if: success() && steps.build.outputs.sign_binaries == 'true' |
84 | | - |
85 | | - with: |
86 | | - azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }} |
87 | | - azure-client-id: ${{ secrets.TRUSTED_SIGNING_CLIENT_ID }} |
88 | | - azure-client-secret: ${{ secrets.TRUSTED_SIGNING_CLIENT_SECRET }} |
89 | | - endpoint: ${{ secrets.TRUSTED_SIGNING_ENDPOINT }} |
90 | | - trusted-signing-account-name: ${{ secrets.TRUSTED_SIGNING_ACCOUNT_NAME }} |
91 | | - certificate-profile-name: ${{ secrets.TRUSTED_SIGNING_CERTIFICATE_PROFILE }} |
92 | | - files-catalog: '${{ github.workspace }}/obj/signlist.txt' |
93 | | - file-digest: SHA256 |
94 | | - timestamp-rfc3161: http://timestamp.acs.microsoft.com |
95 | | - timestamp-digest: SHA256 |
| 92 | + run: | |
| 93 | + sign code trusted-signing ` |
| 94 | + --file-digest "${{ github.workspace }}\obj\signlist.txt" |
| 95 | + --publisher-name "NetOffice" ` |
| 96 | + --description "NetOffice" ` |
| 97 | + --description-url "https://github.com/NetOfficeFw/NetOffice" ` |
| 98 | + --trusted-signing-endpoint "${{ secrets.TRUSTED_SIGNING_ENDPOINT }}" ` |
| 99 | + --trusted-signing-account "${{ secrets.TRUSTED_SIGNING_ACCOUNT }}" ` |
| 100 | + --trusted-signing-certificate-profile "${{ secrets.TRUSTED_SIGNING_PROFILE }}" ` |
| 101 | + --file-digest SHA256 ` |
| 102 | + --timestamp-rfc3161 http://timestamp.acs.microsoft.com ` |
| 103 | + --timestamp-digest SHA256 |
96 | 104 |
|
97 | 105 | - name: Archive NetOffice binaries |
98 | 106 | uses: actions/upload-artifact@v5 |
|
0 commit comments