mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] win2022: enable use of test-signed code (#4098)
This commit is contained in:
committed by
GitHub
parent
46cf736fbe
commit
5a73d60641
@@ -50,3 +50,9 @@ Describe "GDIProcessHandleQuota" {
|
||||
(Get-ItemProperty $regPath32).GDIProcessHandleQuota | Should -BeExactly 20000
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Test Signed Drivers" -Skip:(-not (Test-IsWin22)) {
|
||||
It "bcdedit testsigning should be Yes"{
|
||||
"$(bcdedit)" | Should -Match "testsigning\s+Yes"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,6 +110,14 @@
|
||||
"if (-not ((net localgroup Administrators) -contains '{{user `install_user`}}')) { exit 1 }"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"inline": [
|
||||
"bcdedit.exe /set TESTSIGNING ON"
|
||||
],
|
||||
"elevated_user": "{{user `install_user`}}",
|
||||
"elevated_password": "{{user `install_password`}}"
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"environment_vars": [
|
||||
@@ -143,7 +151,7 @@
|
||||
},
|
||||
{
|
||||
"type": "windows-restart",
|
||||
"restart_timeout": "10m"
|
||||
"restart_timeout": "30m"
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
|
||||
Reference in New Issue
Block a user