Skip to content

Commit 69a009d

Browse files
authored
fix: properly signed packages for new windows update
1 parent 431d2f2 commit 69a009d

File tree

6 files changed

+18
-3
lines changed

6 files changed

+18
-3
lines changed

.github/workflows/apbx.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,32 @@ jobs:
7171
working-directory: ..
7272
if: env.runSxsc == 'true'
7373

74+
- name: Generate and trust signing certificate
75+
id: cert
76+
run: |
77+
$thumbprint = .\make-cert.ps1
78+
Write-Output "thumbprint=$thumbprint" >> $env:GITHUB_OUTPUT
79+
80+
Write-Output "Importing generated cert to trusted root..."
81+
Import-Certificate -FilePath ".\sxs.cer" -CertStoreLocation "Cert:\LocalMachine\Root" | Out-Null
82+
shell: pwsh
83+
working-directory: ..\sxsc
84+
if: env.runSxsc == 'true'
85+
7486
- name: Build CAB
7587
run: |
7688
Write-Output "Installing dependencies..."
7789
pip install -r requirements.txt | Out-Null
7890
79-
Write-Output "Making certificate..."
80-
$thumbprint = .\make-cert.ps1
81-
91+
$thumbprint = '${{ steps.cert.outputs.thumbprint }}'
92+
Write-Output "Using cert thumbprint: $thumbprint"
93+
8294
$atlasSrcPath = '..\Atlas\src\'
8395
$packagePath = "$atlasSrcPath\playbook\Executables\AtlasModules\Packages"
8496
mkdir $packagePath -EA 0 | Out-Null
97+
98+
Copy-Item -Path ".\sxs.cer" -Destination $packagePath -Force
99+
85100
Get-ChildItem "configs" -Filter *.yaml | ForEach-Object {
86101
Write-Output "`n`nProcessing $($_.Name)`n------------------------------------------------------"
87102
Copy-Item -Path $_.FullName -Destination "cfg.yaml" -Force | Out-Null
1.02 KB
Binary file not shown.

0 commit comments

Comments
 (0)