Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release_NupkgAudit.ps1 #2128

Merged
merged 2 commits into from
Dec 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .scripts/release_NupkgAudit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ Param(
[bool]
$verboseLog,

[Parameter(Mandatory=$false,HelpMessage="Full Log?:")]
[Parameter(Mandatory=$false,HelpMessage="Enable or disable signing verification:")]
[bool]
$verifySigning = $true
$verifySigning = $true,

[Parameter(Mandatory=$false,HelpMessage="Enable or disable signing verification:")]
[string]
$expectedCertHash = ""
)


Expand Down Expand Up @@ -107,7 +110,7 @@ function Test-MultiCondition ([bool]$requiredCondition, [bool]$recommendedCondit

function Get-IsPackageSigned([string]$nupkgPath) {
$verifyOutput = "";
$null = & $nugetExePath verify -signature -CertificateFingerprint 3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE $nupkgPath -verbosity detailed 2>&1 | Tee-Object -Variable verifyOutput
$null = & $nugetExePath verify -signature -CertificateFingerprint $expectedCertHash $nupkgPath -verbosity detailed 2>&1 | Tee-Object -Variable verifyOutput

#TEST OUTPUT
Write-Host $verifyOutput
Expand Down