Skip to content

Commit 9e17256

Browse files
committed
Integrate SignPath binary signing for Windows
Signed-off-by: Michael Herger <[email protected]>
1 parent d96c212 commit 9e17256

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

.github/actions/build/action.yaml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ inputs:
1313
description: The key ID to use to upload to S3
1414
AWS_SECRET_ACCESS_KEY:
1515
description: The secret to use to upload to S3
16+
SIGNPATH_API_TOKEN:
17+
description: The SignPath API token to use for code signing
18+
SIGNPATH_ORG_ID:
19+
description: The SignPath organization ID to use for code signing
20+
SIGNPATH_PROJECT_SLUG:
21+
description: The SignPath project slug to use for code signing
22+
SIGNPATH_SIGNING_POLICY_SLUG:
23+
description: The SignPath signing policy slug to use for code signing
1624

1725
runs:
1826
using: composite
@@ -154,12 +162,28 @@ runs:
154162
- name: Archive artifacts
155163
if: ${{ !startsWith(inputs.build-params, 'docker') }}
156164
uses: actions/upload-artifact@v4
165+
id: upload-artifact
157166
with:
158167
name: ${{ inputs.build-params }}
159168
path: publish
160169

170+
- name: Set up Windows environment
171+
if: ${{ startsWith(inputs.build-params, 'win64') }}
172+
uses: signpath/github-action-submit-signing-request@v2
173+
with:
174+
api-token: '${{ inputs.SIGNPATH_API_TOKEN }}'
175+
organization-id: '${{ inputs.SIGNPATH_ORG_ID }}'
176+
project-slug: '${{ inputs.SIGNPATH_PROJECT_SLUG }}'
177+
signing-policy-slug: '${{ inputs.SIGNPATH_SIGNING_POLICY_SLUG }}'
178+
github-artifact-id: '${{ steps.upload-artifact.outputs.artifact-id }}'
179+
wait-for-completion: true
180+
output-artifact-directory: publish
181+
# parameters: |
182+
# version: ${{ toJSON(some.userinput) }}
183+
# myparam: "another param"
184+
161185
- name: Upload artifacts to R2
162-
if: ${{ !startsWith(inputs.build-params, 'docker') && github.repository_owner == 'LMS-Community' }}
186+
if: false
163187
shell: bash
164188
env:
165189
AWS_ACCESS_KEY_ID: ${{ inputs.AWS_KEY_ID }}

.github/workflows/00_build.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on:
2323
jobs:
2424
mac:
2525
name: Build LMS for Mac
26+
if: false
2627
runs-on: macos-15
2728
env:
2829
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
@@ -72,6 +73,7 @@ jobs:
7273

7374
linux:
7475
name: Build LMS for Linux
76+
if: false
7577
runs-on: ubuntu-22.04
7678
strategy:
7779
matrix:
@@ -110,6 +112,7 @@ jobs:
110112
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
111113

112114
docker:
115+
if: false
113116
name: Build LMS for Docker
114117
runs-on: ubuntu-22.04
115118

@@ -161,10 +164,14 @@ jobs:
161164
build-type: ${{ inputs.build_type }}
162165
AWS_KEY_ID: ${{ secrets.R2_KEY_ID }}
163166
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
167+
SIGNPATH_API_TOKEN: ${{ secrets.SIGNPATH_API_TOKEN }}
168+
SIGNPATH_ORG_ID: ${{ vars.SIGNPATH_ORG_ID }}
169+
SIGNPATH_PROJECT_SLUG: ${{ vars.SIGNPATH_PROJECT_SLUG }}
170+
SIGNPATH_SIGNING_POLICY_SLUG: ${{ vars.SIGNPATH_SIGNING_POLICY_SLUG }}
164171

165172
updateRepoFile:
166173
name: Trigger repository file update
167-
if: ${{ success() && inputs.build_type == 'nightly' && github.repository_owner == 'LMS-Community' }}
174+
if: false
168175
runs-on: ubuntu-latest
169176
timeout-minutes: 2
170177
needs:

0 commit comments

Comments
 (0)