Skip to content

Commit de4a7e1

Browse files
jmcouffinCopilot
andcommitted
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent a28b92c commit de4a7e1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/winget.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
$ErrorActionPreference = 'Stop'
2222
$wingetCreate = Join-Path $env:RUNNER_TEMP 'wingetcreate.exe'
2323
Invoke-WebRequest -Uri 'https://aka.ms/wingetcreate/latest' -OutFile $wingetCreate
24+
$signature = Get-AuthenticodeSignature -FilePath $wingetCreate
25+
if ($signature.Status -ne 'Valid') { throw "Downloaded wingetcreate.exe has invalid Authenticode signature: $($signature.Status)" }
2426
"WINGET_CREATE_EXE=$wingetCreate" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
2527
2628
- name: Update WinGet manifests

0 commit comments

Comments
 (0)