From 6a25c2a115bc66d8dc11ce69579af03f37d5fe06 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sun, 2 Jul 2023 18:24:47 -0400 Subject: [PATCH] Disable Smart Screen during final winget test --- .github/workflows/ci-pipeline.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 1cc32d0b2b..e287ec98a9 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -1502,6 +1502,15 @@ jobs: if: "!(cancelled() || failure()) && needs.deploy-tgs.result == 'success'" runs-on: windows-latest steps: + - name: Disable Smart Screen # https://superuser.com/a/1778345 + shell: powershell + run: | + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "EnableSmartScreen" -Type DWord -Value 0 + if (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter" -Force | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter" -Name "EnabledV9" -Type DWord -Value 0 + - name: Setup dotnet uses: actions/setup-dotnet@v2 with: