File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 push :
99 branches :
1010 - main
11- pull_request :
1211 workflow_dispatch :
1312 inputs :
1413 spawnDataImages :
2322 ' [["SQL2017","mssql-empty:v2017"],["SQL2019","mssql-empty:v2019"]]'
2423
2524jobs :
26- # 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖
25+
2726 set-up-env-vars :
2827 name : set up matrix variables
2928 # if: ${{ always() }}
6867
6968 env :
7069 PFX_PATH : ${{ github.workspace }}\tSQLt\Build\tSQLtOfficialSigningKey.pfx
71- PFX_PASSWORD : ${{ secrets.PFX_PASSWORD }}
7270 ARTIFACT_DIR : ${{ github.workspace }}\artifacts
7371 MSBUILD_HOME : C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin
7472
@@ -84,10 +82,10 @@ jobs:
8482 - name : create and install unofficial pfx file for signing dlls
8583 shell : pwsh
8684 run : |
85+ $superSecurePassword = "ExtraSuperSecurePassword1!";
8786 $cert = New-SelfSignedCertificate -FriendlyName "tSQLt_testKey" -Type CodeSigningCert -Subject "CN=localhost" -KeyAlgorithm RSA -HashAlgorithm SHA1 -KeyLength 2048 -SmimeCapabilities -CertStoreLocation "cert:/LocalMachine" -Provider "Microsoft Strong Cryptographic Provider"
88- $pwd = ConvertTo-SecureString -String "$env:PFX_PASSWORD" -Force -AsPlainText
89- $pfxFile = Export-PfxCertificate -cert ("Cert:\LocalMachine\My\" + $cert.thumbprint) -FilePath $env:PFX_PATH -Password $pwd
90- &"${{ github.workspace }}\tSQLt\Build\SnInstallPfx" "$env:PFX_PATH" "$env:PFX_PASSWORD" tSQLt_OfficialSigningKey
87+ $pfxFile = Export-PfxCertificate -cert ("Cert:\LocalMachine\My\" + $cert.thumbprint) -FilePath $env:PFX_PATH -Password (ConvertTo-SecureString -String $superSecurePassword -Force -AsPlainText)
88+ &"${{ github.workspace }}\tSQLt\Build\SnInstallPfx" "$env:PFX_PATH" $superSecurePassword tSQLt_OfficialSigningKey
9189
9290 - name : ant Build\tSQLt.buildCLR.xml --> Build/output/CLRBuild/
9391 run : ant -buildfile "${{ github.workspace }}\tSQLt\Build\tSQLt.buildCLR.xml" -D"msbuild.path"="$env:MSBUILD_HOME" all
You can’t perform that action at this time.
0 commit comments