Skip to content

Commit ec44810

Browse files
committed
Remove code signing from github
1 parent cbf8d14 commit ec44810

File tree

3 files changed

+1
-53
lines changed

3 files changed

+1
-53
lines changed

.github/template/build-signed/action.yaml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,6 @@ inputs:
5454
required: true
5555
description: "Path to the files to bundle and upload"
5656

57-
signtool:
58-
required: true
59-
description: "Path to signtool"
60-
default: "C:\\Program Files (x86)\\Microsoft SDKs\\ClickOnce\\SignTool\\signtool.exe"
61-
62-
timestamp_server:
63-
required: true
64-
description: "Timestamp server for signtool"
65-
default: "http://timestamp.digicert.com"
66-
67-
base64_encoded_pfx:
68-
description: 'Base64 encoded pfx file'
69-
required: true
70-
71-
pfx_key:
72-
description: 'pfx password'
73-
required: true
74-
7557
runs:
7658
using: composite
7759
steps:
@@ -95,35 +77,11 @@ runs:
9577
shell: bash
9678
run: dotnet publish -c ${{ inputs.configuration }} ${{ inputs.project_path }} ${{ inputs.dotnet_args }}
9779

98-
# Decode the base 64 encoded pfx and save the Signing_Certificate
99-
- name: Decode the pfx
100-
shell: bash
101-
run: echo "${{ inputs.base64_encoded_pfx }}" | base64 -d > GitHubActionsWorkflow.pfx
102-
103-
- name: Sign the executable
104-
shell: powershell
105-
env:
106-
pfx_key: ${{ inputs.pfx_key }}
107-
run: |
108-
& "${{ inputs.signtool }}" sign /debug /tr ${{ inputs.timestamp_server }} /td sha256 /fd sha256 /f GitHubActionsWorkflow.pfx /p $Env:pfx_key ${{ inputs.binaries }}
109-
11080
# Create the app package by building and packaging the Windows Application Packaging project
11181
- name: Create the installer
11282
shell: bash
11383
run: dotnet build ${{ inputs.package_project }} --no-dependencies -c ${{ inputs.configuration }} -p Version=${{ inputs.package_version }}
11484

115-
- name: Sign the installer
116-
shell: powershell
117-
env:
118-
pfx_key: ${{ inputs.pfx_key }}
119-
run: |
120-
& "${{ inputs.signtool }}" sign /debug /tr ${{ inputs.timestamp_server }} /td sha256 /fd sha256 /f GitHubActionsWorkflow.pfx /p $Env:pfx_key ${{ inputs.package }}
121-
122-
# Remove the pfx
123-
- name: Remove the pfx
124-
shell: bash
125-
run: rm GitHubActionsWorkflow.pfx
126-
12785
- name: Upload msi
12886
uses: actions/upload-artifact@v4
12987
with:

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ jobs:
4444
- name: Build runtime dependent binaries
4545
uses: "./.github/template/build-signed"
4646
with:
47-
base64_encoded_pfx: ${{ secrets.Base64_Encoded_Pfx }}
48-
pfx_key: ${{ secrets.Pfx_Key }}
4947
configuration: ${{ matrix.configuration }}
5048
dotnet_args: "-p VersionPrefix=${{ needs.prepare.outputs.version }} -p VersionSuffix=${{ needs.prepare.outputs.version_suffix }}"
5149
package_project: dist/Dependent/Dependent.wixproj
@@ -76,8 +74,6 @@ jobs:
7674
- name: Build runtime portable binaries
7775
uses: "./.github/template/build-signed"
7876
with:
79-
base64_encoded_pfx: ${{ secrets.Base64_Encoded_Pfx }}
80-
pfx_key: ${{ secrets.Pfx_Key }}
8177
configuration: ${{ matrix.configuration }}
8278
dotnet_args: "-p VersionPrefix=${{ needs.prepare.outputs.version }} -p VersionSuffix=${{ needs.prepare.outputs.version_suffix }} -r win-x64 -p:PublishSingleFile=true"
8379
package_project: dist/Portable/Portable.wixproj

.github/workflows/release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ jobs:
4545
- name: Build runtime dependent binaries
4646
uses: "./.github/template/build-signed"
4747
with:
48-
base64_encoded_pfx: ${{ secrets.Base64_Encoded_Pfx }}
49-
pfx_key: ${{ secrets.Pfx_Key }}
5048
dotnet_args: "-p VersionPrefix=${{ needs.prepare.outputs.version }}"
5149
package_project: dist/Dependent/Dependent.wixproj
5250
package_version: ${{ needs.prepare.outputs.version }}
@@ -71,8 +69,6 @@ jobs:
7169
- name: Build runtime independent binaries
7270
uses: "./.github/template/build-signed"
7371
with:
74-
base64_encoded_pfx: ${{ secrets.Base64_Encoded_Pfx }}
75-
pfx_key: ${{ secrets.Pfx_Key }}
7672
dotnet_args: "-p VersionPrefix=${{ needs.prepare.outputs.version }} -r win-x64 -p:PublishSingleFile=true"
7773
package_project: dist/Portable/Portable.wixproj
7874
package_version: ${{ needs.prepare.outputs.version }}
@@ -113,6 +109,4 @@ jobs:
113109
DependentSetup-${{ needs.prepare.outputs.version }}-Release/BrowserPicker.msi
114110
PortableSetup-${{ needs.prepare.outputs.version }}-Release/BrowserPicker-Portable.msi
115111
Dependent.zip
116-
Portable.zip
117-
dist/code_signing.cer
118-
112+
Portable.zip

0 commit comments

Comments
 (0)