mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
win2019: enable use of test-signed code (#4296)
This commit is contained in:
committed by
GitHub
parent
8c93fad835
commit
ae930f132c
@@ -51,7 +51,7 @@ Describe "GDIProcessHandleQuota" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Test Signed Drivers" -Skip:(-not (Test-IsWin22)) {
|
||||
Describe "Test Signed Drivers" -Skip:(Test-IsWin16) {
|
||||
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": [
|
||||
|
||||
Reference in New Issue
Block a user