Skip to content

Commit 731de3e

Browse files
committed
hard-coding irrelevant password
1 parent ff73942 commit 731de3e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build_and_test_on_spawn.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
- main
1111
- FixCommunityBuild
1212
pull_request:
13-
tags:
14-
- enhancement
13+
types:
14+
- labeled
1515
workflow_dispatch:
1616
inputs:
1717
spawnDataImages:
@@ -26,8 +26,9 @@ env:
2626
'[["SQL2017","mssql-empty:v2017"],["SQL2019","mssql-empty:v2019"]]'
2727

2828
jobs:
29-
# 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖
29+
3030
set-up-env-vars:
31+
if: ${{ github.event.label.name == 'bug' }}
3132
name: set up matrix variables
3233
#if: ${{ always() }}
3334

@@ -71,7 +72,6 @@ jobs:
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

0 commit comments

Comments
 (0)