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 f04a36c commit 8b6894d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/scriptTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,20 @@ jobs:
./jf.exe --version
if: contains( matrix.suite.os, 'windows')

- name: Check Certificate Expiration Date (Windows)
- name: Check Windows Certificate Expiration Date
shell: pwsh
run: |
$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 certificate will expire within a month."
Write-Host "The JFrog CLI Windows executable's certificate will expire in less than a month."
exit 1
}
if: contains( matrix.suite.os, 'windows')

# Prior to the release, we set the new version in the package.json files, introducing the prereleased version.
# Prior to the release, we set the new version in the package.json files, introducing the pre-released version.
# This adjustment may result in an attempt to download a version that hasn't been published to releases.jfrog.io yet.
# To handle it, we fetch the most recent JFrog CLI release and store it in the LATEST_RELEASE step output.
- name: "Get latest release"
Expand Down

0 comments on commit 8b6894d

Please sign in to comment.