Skip to content

Commit e50a7ea

Browse files
authored
check signature of 3rd party dlls
1 parent 305989f commit e50a7ea

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tools/CheckSignature.ps1

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,18 @@ function Check-All {
7171

7272
# -------------------------------------
7373

74+
$thirdParty = Get-ChildItem $path\* -Include *.dll -Recurse | Where-Object {
75+
($_.Name -ilike "*Newtonsoft.Json*") -or `
76+
($_.Name -ilike "*AutoMapper*") -or `
77+
($_.Name -ilike "*YamlDotNet*")
78+
}
7479
$exts = "*.ps1", "*.psm1", "*.ps1xml"
7580
if ($Env:CheckPsd1 -ieq "True") {
7681
$exts += "*.psd1"
7782
}
78-
$files += (Get-ChildItem $path\* -Include $exts -Recurse)
79-
$files = $files | Where-Object { ($_.FullName -notlike "*Newtonsoft.Json*") -and `
80-
($_.FullName -notlike "*AutoMapper*") -and `
81-
($_.FullName -notlike "*Security.Cryptography*") -and `
83+
$files += $thirdParty + (Get-ChildItem $path\* -Include $exts -Recurse)
84+
$files = $files | Where-Object { ($_.FullName -notlike "*Security.Cryptography*") -and `
8285
($_.FullName -notlike "*NLog*") -and `
83-
($_.FullName -notlike "*YamlDotNet*") -and `
8486
($_.FullName -notlike "*BouncyCastle.Crypto*") -and `
8587
($_.FullName -notlike "*System.Management.Automation*")}
8688
Write-Host "Checking the authenticode signature of $($files.Count) files (*.dll, $($exts -Join ', '))" -ForegroundColor Yellow

0 commit comments

Comments
 (0)