Skip to content

Commit f99fbcd

Browse files
committed
Change variable referenced to isFork to tell if secrets are available
1 parent ac18d93 commit f99fbcd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

eng/pipelines/dotnet-sqlclient-ci-core.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ stages:
292292
TCPConnectionString: $(AZURE_DB_TCP_CONN_STRING)
293293
NPConnectionString: $(AZURE_DB_NP_CONN_STRING)
294294
AADAuthorityURL: $(AADAuthorityURL)
295-
${{ if ne(variables['Azure_Password'], '') }}:
295+
${{ if eq(variables['system.pullRequest.isFork'], 'False') }}:
296296
AADPasswordConnectionString: $(AAD_PASSWORD_CONN_STR)
297297
AADServicePrincipalId: $(AADServicePrincipalId)
298-
${{ if ne(variables['AADServicePrincipalSecret'], '') }}:
298+
${{ if eq(variables['system.pullRequest.isFork'], 'False') }}:
299299
AADServicePrincipalSecret: $(AADServicePrincipalSecret)
300300
AzureKeyVaultUrl: $(AzureKeyVaultUrl)
301301
AzureKeyVaultTenantId: $(AzureKeyVaultTenantId)
@@ -321,10 +321,10 @@ stages:
321321
TCPConnectionString: $(AZURE_DB_TCP_CONN_STRING_eastus)
322322
NPConnectionString: $(AZURE_DB_NP_CONN_STRING_eastus)
323323
AADAuthorityURL: $(AADAuthorityURL)
324-
${{ if ne(variables['Azure_Password'], '') }}:
324+
${{ if eq(variables['system.pullRequest.isFork'], 'False') }}:
325325
AADPasswordConnectionString: $(AAD_PASSWORD_CONN_STR_eastus)
326326
AADServicePrincipalId: $(AADServicePrincipalId)
327-
${{ if ne(variables['AADServicePrincipalSecret'], '') }}:
327+
${{ if eq(variables['system.pullRequest.isFork'], 'False') }}:
328328
AADServicePrincipalSecret: $(AADServicePrincipalSecret)
329329
AzureKeyVaultUrl: $(AzureKeyVaultUrl)
330330
AzureKeyVaultTenantId: $(AzureKeyVaultTenantId)
@@ -333,7 +333,7 @@ stages:
333333
LocalDbAppName: $(LocalDbAppName)
334334
LocalDbSharedInstanceName: $(LocalDbSharedInstanceName)
335335

336-
${{ if ne(variables['Enclave_Password'], '') }}: # only run enclave jobs if the password is available
336+
${{ if eq(variables['system.pullRequest.isFork'], 'False') }}: # only run enclave jobs if the password is available
337337
windows_enclave_sql:
338338
pool: ADO-CI-AE-1ES-Pool
339339
images:
@@ -354,7 +354,7 @@ stages:
354354
EnclaveEnabled: true
355355
AADAuthorityURL: $(AADAuthorityURL)
356356
AADServicePrincipalId: $(AADServicePrincipalId)
357-
${{ if ne(variables['AADServicePrincipalSecret'], '') }}:
357+
${{ if eq(variables['system.pullRequest.isFork'], 'False') }}:
358358
AADServicePrincipalSecret: $(AADServicePrincipalSecret)
359359
AzureKeyVaultUrl: $(AzureKeyVaultUrl)
360360
AzureKeyVaultTenantId: $(AzureKeyVaultTenantId)
@@ -407,10 +407,10 @@ stages:
407407
TCPConnectionString: $(AZURE_DB_TCP_CONN_STRING)
408408
NPConnectionString: $(AZURE_DB_NP_CONN_STRING)
409409
AADAuthorityURL: $(AADAuthorityURL)
410-
${{ if ne(variables['Azure_Password'], '') }}:
410+
${{ if eq(variables['system.pullRequest.isFork'], 'False') }}:
411411
AADPasswordConnectionString: $(AAD_PASSWORD_CONN_STR)
412412
AADServicePrincipalId: $(AADServicePrincipalId)
413-
${{ if ne(variables['AADServicePrincipalSecret'], '') }}:
413+
${{ if eq(variables['system.pullRequest.isFork'], 'False') }}:
414414
AADServicePrincipalSecret: $(AADServicePrincipalSecret)
415415
AzureKeyVaultUrl: $(AzureKeyVaultUrl)
416416
AzureKeyVaultTenantId: $(AzureKeyVaultTenantId)
@@ -419,7 +419,7 @@ stages:
419419
LocalDbAppName: $(LocalDbAppName)
420420
LocalDbSharedInstanceName: $(LocalDbSharedInstanceName)
421421

422-
${{ if ne(variables['Enclave_Password'], '') }}: # only run enclave jobs if the password is available
422+
${{ if eq(variables['system.pullRequest.isFork'], 'False') }}: # only run enclave jobs if the password is available
423423
linux_enclave_sql:
424424
pool: ADO-CI-AE-1ES-Pool
425425
images:
@@ -439,7 +439,7 @@ stages:
439439
TCPConnectionStringAASSGX: $(SQL_TCP_CONN_STRING_AASSGX)
440440
EnclaveEnabled: true
441441
AADServicePrincipalId: $(AADServicePrincipalId)
442-
${{ if ne(variables['AADServicePrincipalSecret'], '') }}:
442+
${{ if eq(variables['system.pullRequest.isFork'], 'False') }}:
443443
AADServicePrincipalSecret: $(AADServicePrincipalSecret)
444444
AzureKeyVaultUrl: $(AzureKeyVaultUrl)
445445
AzureKeyVaultTenantId: $(AzureKeyVaultTenantId)

0 commit comments

Comments
 (0)