From 2692ce785ceadfa54082b300768d6e38c08e5362 Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Mon, 3 Oct 2022 13:07:56 -0700 Subject: [PATCH 1/2] Enable CodeQL for official builds --- azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8f198fa77..64d29cb6d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -90,6 +90,9 @@ variables: /p:PostBuildSign=$(PostBuildSign) - name: _PublishArgs value: '' + - ${{ if in(variables['Build.Reason'], 'PullRequest') }}: + - name: Codeql.Enabled + value: true​ stages: - stage: build From ba0bbc3101c36f07751d55be732489d46ee54a5f Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Mon, 3 Oct 2022 13:10:37 -0700 Subject: [PATCH 2/2] Fix conditional --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 64d29cb6d..d0452d53b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -90,7 +90,7 @@ variables: /p:PostBuildSign=$(PostBuildSign) - name: _PublishArgs value: '' - - ${{ if in(variables['Build.Reason'], 'PullRequest') }}: + - ${{ if ne(variables['System.TeamProject'], 'public') }}: - name: Codeql.Enabled value: true​