@@ -10,7 +10,6 @@ function New-GithubRelease {
1010 [Parameter (Mandatory = $false )][String ]$GitHubRepository = " StorageGRID-Webscale" ,
1111 [Parameter (Mandatory = $false )][switch ]$Draft = $false ,
1212 [Parameter (Mandatory = $false )][switch ]$PreRelease = $false
13-
1413 )
1514
1615 # The github API key must be available in $GitHubApiKey (https://github.com/blog/1509-personal-api-tokens)
@@ -74,7 +73,8 @@ function New-SGWRelease {
7473 [Parameter (Mandatory = $false )][switch ]$Major ,
7574 [Parameter (Mandatory = $false )][switch ]$Minor ,
7675 [Parameter (Mandatory = $false )][switch ]$Build ,
77- [Parameter (Mandatory = $false )][switch ]$Release
76+ [Parameter (Mandatory = $false )][switch ]$Release ,
77+ [Parameter (Mandatory = $true )][X509Certificate ]$Certificate
7878 )
7979
8080 $ErrorActionPreference = " Stop"
@@ -148,8 +148,7 @@ function New-SGWRelease {
148148 Write-Host " Signing PowerShell files..."
149149
150150 # Code Signing
151- $cert = Get-ChildItem cert:\CurrentUser\My - CodeSigningCert
152- Get-ChildItem $dst \* .ps* | % { $_.FullName } | Set-AuthenticodeSignature - Certificate $cert | Out-Null
151+ Get-ChildItem $dst \* .ps* | % { $_.FullName } | Set-AuthenticodeSignature - Certificate $Certificate - TimestampServer " http://timestamp.comodoca.com/authenticode" | Out-Null
153152
154153 Write-Host " Creating the release archive..."
155154
0 commit comments