File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 1
1
$launcherName = " output\nvda*.exe"
2
2
if (-not (Test-Path - Path $launcherName - PathType Leaf)) {
3
- Write-Output " The launcher does not exist." >> $env: GITHUB_STEP_SUMMARY
3
+ Write-Output " FAIL: Launcher verification. The launcher does not exist." >> $env: GITHUB_STEP_SUMMARY
4
4
exit 1
5
5
}
6
- if ($env: apiSigningToken -and (Get-AuthenticodeSignature - FilePath $launcherName ).Status -ne ' Valid' ) {
7
- Write-Output " The launcher was not signed, or the signature was invalid.`n " >> $env: GITHUB_STEP_SUMMARY
8
- exit 1
6
+ if ($env: apiSigningToken ) {
7
+ $authenticodeSignature = Get-AuthenticodeSignature - FilePath $launcherName
8
+ if (($authenticodeSignature ).Status -ne ' Valid' ) {
9
+ Set-PSRepository PSGallery - InstallationPolicy Trusted
10
+ Install-Module - Name FormatMarkdownTable - Force
11
+ Write-Output @"
12
+ FAIL: Launcher validation. Expected the launcher to be signed.
13
+ <details>
14
+ <summary>Signature details</summary>
15
+
16
+ $ ( $authenticodeSignature | Format-MarkdownTableTableStyle - HideStandardOutput - ShowMarkdown - DoNotCopyToClipboard)
17
+
18
+ </details>
19
+ "@ >> $env: GITHUB_STEP_SUMMARY
20
+ exit 1
21
+ }
9
22
}
You can’t perform that action at this time.
0 commit comments