File tree Expand file tree Collapse file tree 2 files changed +2
-24
lines changed
src/playbook/Configuration/atlas Expand file tree Collapse file tree 2 files changed +2
-24
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -3,14 +3,6 @@ title: Components
33description : Removes certain Windows components
44onUpgrade : false
55actions :
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
You can’t perform that action at this time.
0 commit comments