mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06:00
error check code signing
This commit is contained in:
parent
09575b0f8d
commit
4ee41cf198
5
.github/workflows/compile.yaml
vendored
5
.github/workflows/compile.yaml
vendored
@ -32,6 +32,11 @@ jobs:
|
|||||||
$cert = Get-ChildItem -Path Cert:\CurrentUser\My -CodeSigningCert | Select-Object -First 1
|
$cert = Get-ChildItem -Path Cert:\CurrentUser\My -CodeSigningCert | Select-Object -First 1
|
||||||
if ($null -eq $cert) { throw "Code signing certificate not found" }
|
if ($null -eq $cert) { throw "Code signing certificate not found" }
|
||||||
Set-AuthenticodeSignature -FilePath ./winutil.ps1 -Certificate $cert
|
Set-AuthenticodeSignature -FilePath ./winutil.ps1 -Certificate $cert
|
||||||
|
- name: Verify code signature
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
$signature = Get-AuthenticodeSignature -FilePath ./winutil.ps1
|
||||||
|
if ($signature.Status -ne 'Valid') { throw "Code signing failed" }
|
||||||
- name: Upload winutil.ps1 as artifact
|
- name: Upload winutil.ps1 as artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user