Skip to content

Commit 58e3864

Browse files
committed
revert 206b3bf and 69a009d
1 parent 9a81738 commit 58e3864

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

.github/workflows/apbx.yaml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,32 +71,18 @@ 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-
8674
- name: Build CAB
8775
run: |
8876
Write-Output "Installing dependencies..."
8977
pip install -r requirements.txt | Out-Null
9078
91-
$thumbprint = '${{ steps.cert.outputs.thumbprint }}'
92-
Write-Output "Using cert thumbprint: $thumbprint"
79+
Write-Output "Making certificate..."
80+
$thumbprint = .\make-cert.ps1
9381
9482
$atlasSrcPath = '..\Atlas\src\'
9583
$packagePath = "$atlasSrcPath\playbook\Executables\AtlasModules\Packages"
9684
mkdir $packagePath -EA 0 | Out-Null
9785
98-
Copy-Item -Path ".\sxs.cer" -Destination $packagePath -Force
99-
10086
Get-ChildItem "configs" -Filter *.yaml | ForEach-Object {
10187
Write-Output "`n`nProcessing $($_.Name)`n------------------------------------------------------"
10288
Copy-Item -Path $_.FullName -Destination "cfg.yaml" -Force | Out-Null

src/playbook/Configuration/atlas/components.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ title: Components
33
description: Removes certain Windows components
44
onUpgrade: false
55
actions:
6-
# Trust certificate so CAB signatures are valid
7-
- !powerShell:
8-
command: >-
9-
Import-Certificate -FilePath "$([Environment]::GetFolderPath('Windows'))\AtlasModules\Packages\sxs.cer"
10-
-CertStoreLocation "Cert:\LocalMachine\Root"
11-
wait: true
12-
exeDir: false
13-
146
# Remove Security Center startup item
157
- !registryValue: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', value: 'SecurityHealth', operation: delete}
168

0 commit comments

Comments
 (0)