File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ trigger:
2727 include :
2828 - main
2929 - dev
30- pr : none
30+ pr :
31+ branches :
32+ include :
33+ - main
34+ - dev
3135
3236jobs :
3337 - job : MsGraphPsSdkCiBuild
Original file line number Diff line number Diff line change @@ -54,11 +54,17 @@ steps:
5454 $ModuleMapping.Keys | ForEach-Object {
5555 $ModuleName = $_
5656 $ModulePath = "$(System.DefaultWorkingDirectory)/src/$ModuleName/$ApiVersion"
57- if (Test-Path $ModulePath) {
58- $ModulePsd1 = Join-Path $ModulePath "Microsoft.Graph*.$ModuleName.psd1" -Resolve
59- $ModulePsm1 = Join-Path $ModulePath "Microsoft.Graph*.$ModuleName.psm1" -Resolve
60- ($ModulePsd1 | Get-AuthenticodeSignature).Status | Should -Be "Valid"
61- ($ModulePsm1 | Get-AuthenticodeSignature).Status | Should -Be "Valid"
57+ $ModulePsd1 = Join-Path $ModulePath "Microsoft.Graph*.$ModuleName.psd1"
58+ $ModulePsm1 = Join-Path $ModulePath "Microsoft.Graph*.$ModuleName.psm1"
59+ Write-Host "Validating Authenticode Signature for $ModulePsd1"
60+ Write-Host "Validating Authenticode Signature for $ModulePsm1"
61+ if ((Test-Path $ModulePsd1) -and (Test-Path $ModulePsm1)) {
62+ $ModulePsd1AuthCodeSignature = $ModulePsd1 | Get-AuthenticodeSignature
63+ $ModulePsm1AuthCodeSignature = $ModulePsm1 | Get-AuthenticodeSignature
64+ Write-Host "Authenticode Signature for $ModulePsd1 is $($ModulePsd1AuthCodeSignature.Status)"
65+ Write-Host "Authenticode Signature for $ModulePsm1 is $($ModulePsm1AuthCodeSignature.Status)"
66+ $ModulePsd1AuthCodeSignature.Status | Should -Be "Valid"
67+ $ModulePsm1AuthCodeSignature.Status | Should -Be "Valid"
6268 }
6369 }
6470 }
You can’t perform that action at this time.
0 commit comments