Skip to content

Commit

Permalink
Update scriptTests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 authored Feb 22, 2024
1 parent 8b6894d commit c693bb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/scriptTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ jobs:
$signature = Get-AuthenticodeSignature -FilePath ./jf.exe
$expirationDate = $signature.SignerCertificate.NotAfter
Write-Host "Certificate Expiration Date: $expirationDate"
$oneMonthFromNow = (Get-Date).AddMonths(1)
if ($expirationDate -lt $oneMonthFromNow) {
Write-Host "The JFrog CLI Windows executable's certificate will expire in less than a month."
exit 1
$daysUntilExpiration = ($expirationDate - (Get-Date)).Days
if ($daysUntilExpiration -lt 30) {
Write-Host "The JFrog CLI Windows binary's certificate will expire within $daysUntilExpiration days."
exit 1
}
if: contains( matrix.suite.os, 'windows')

Expand Down

0 comments on commit c693bb0

Please sign in to comment.