Commit bb2ae62
authored
Check files are signed after Submit-SigningRequest (#19113)
Fixes #19099
Supersedes #18384
### Summary of the issue:
Some files are not signed some of the time
### Description of user facing changes:
None
### Description of developer facing changes:
In the case of alpha, beta, rc, stable and try builds, failure to sign
the launcher or most of our executables will fail the build.
All CI builds now run serially to avoid race conditions.
### Description of development approach:
Set the `ErrorAction` common parameter on `Send-SigningRequest` to
`Stop` to cause the signing script to fail if the cmd-let fails.
Use `Get-AuthenticodeSignature` to verify the signature of files after
`Submit-SigningRequest` returns.
### Testing strategy:
CI
* [x] Successful signing:
https://github.com/nvaccess/nvda/actions/runs/18733609673
* Note that this run's failure was due to a system test failure
* Checked that the launcher and all `dll` and `exe` files are signed.
Found unsigned `exe`s and `dll` s by unzipping the controller client and
launcher into the same directory, and running:
```ps1
(Get-ChildItem -Recurse -Include *.exe, *.dll -Name |
Get-AuthenticodeSignature | where-object {$_.Status -ne 'Valid'}).Path
```
The following files do not have valid signatures:
* `app\brailleDisplayDrivers\lilli.dll`
* `app\miscDeps\tools\msgfmt.exe`
* `app\synthDrivers\espeak.dll`
* `app\synthDrivers\sonic.dll`
* `app\brlapi-0.8.dll`
* `app\libgcc_s_dw2-1.dll`
* `app\wxbase32u_net_vc140.dll`
* `app\wxbase32u_vc140.dll`
* `app\wxmsw32u_aui_vc140.dll`
* `app\wxmsw32u_core_vc140.dll`
* `app\wxmsw32u_html_vc140.dll`
* `app\wxmsw32u_stc_vc140.dll`
* `Banner.dll`
* `System.dll`
However, as best as I can tell, we never attempt to sign these files.
* [x] Intentionally don't sign a DLL:
https://github.com/nvaccess/nvda/actions/runs/18703904287
* [x] Intentionally don't sign the launcher:
https://github.com/nvaccess/nvda/actions/runs/18707118372
### Known issues with pull request:
None1 parent 6f4dffa commit bb2ae62
2 files changed
+44
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 5 | + | |
10 | 6 | | |
11 | 7 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 8 | | |
16 | 9 | | |
17 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments