File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ echo " Validating launcher."
1
2
$launcherName = " output\nvda*.exe"
3
+ echo " launcherName=$launcherName "
4
+ echo " Checking existance"
2
5
if (-not (Test-Path - Path $launcherName - PathType Leaf)) {
6
+ echo " File doesn't exist."
3
7
Write-Output " FAIL: Launcher verification. The launcher does not exist." >> $env: GITHUB_STEP_SUMMARY
4
8
exit 1
5
9
}
10
+ echo " File exists."
6
11
if ($env: apiSigningToken ) {
12
+ echo " Checking signature"
7
13
$authenticodeSignature = Get-AuthenticodeSignature - FilePath $launcherName
8
14
if (($authenticodeSignature ).Status -ne ' Valid' ) {
15
+ echo " Signature not valid."
9
16
Set-PSRepository PSGallery - InstallationPolicy Trusted
10
17
Install-Module - Name FormatMarkdownTable - Force
11
18
Write-Output @"
@@ -18,5 +25,11 @@ FAIL: Launcher validation. Expected the launcher to be signed.
18
25
</details>
19
26
"@ >> $env: GITHUB_STEP_SUMMARY
20
27
exit 1
28
+ } else {
29
+ echo " Signature valid."
21
30
}
31
+ echo $authenticodeSignature
32
+ } else {
33
+ echo " Not checking signature."
22
34
}
35
+ echo " Launcher verification passed."
You can’t perform that action at this time.
0 commit comments