File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 - main
1111 - FixCommunityBuild
1212 pull_request :
13- tags :
14- - enhancement
13+ types :
14+ - labeled
1515 workflow_dispatch :
1616 inputs :
1717 spawnDataImages :
2626 ' [["SQL2017","mssql-empty:v2017"],["SQL2019","mssql-empty:v2019"]]'
2727
2828jobs :
29- # 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖
29+
3030 set-up-env-vars :
31+ if : ${{ github.event.label.name == 'bug' }}
3132 name : set up matrix variables
3233 # if: ${{ always() }}
3334
7172
7273 env :
7374 PFX_PATH : ${{ github.workspace }}\tSQLt\Build\tSQLtOfficialSigningKey.pfx
74- PFX_PASSWORD : ${{ secrets.PFX_PASSWORD }}
7575 ARTIFACT_DIR : ${{ github.workspace }}\artifacts
7676 MSBUILD_HOME : C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin
7777
@@ -87,10 +87,10 @@ jobs:
8787 - name : create and install unofficial pfx file for signing dlls
8888 shell : pwsh
8989 run : |
90+ $superSecurePassword = "ExtraSuperSecurePassword1!";
9091 $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"
91- $pwd = ConvertTo-SecureString -String "$env:PFX_PASSWORD" -Force -AsPlainText
92- $pfxFile = Export-PfxCertificate -cert ("Cert:\LocalMachine\My\" + $cert.thumbprint) -FilePath $env:PFX_PATH -Password $pwd
93- &"${{ github.workspace }}\tSQLt\Build\SnInstallPfx" "$env:PFX_PATH" "$env:PFX_PASSWORD" tSQLt_OfficialSigningKey
92+ $pfxFile = Export-PfxCertificate -cert ("Cert:\LocalMachine\My\" + $cert.thumbprint) -FilePath $env:PFX_PATH -Password (ConvertTo-SecureString -String $superSecurePassword -Force -AsPlainText)
93+ &"${{ github.workspace }}\tSQLt\Build\SnInstallPfx" "$env:PFX_PATH" $superSecurePassword tSQLt_OfficialSigningKey
9494
9595 - name : ant Build\tSQLt.buildCLR.xml --> Build/output/CLRBuild/
9696 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