Skip to content

Commit 93fe079

Browse files
authored
[ci] Disable CodeQL on CI/PR pipelines (#9128)
The conditions to disable CodeQL across different jobs and branches do not appear be working as expected. The 'make prepare-update-mono' step has been hanging intermittently on macOS, which appears to be due to CodeQL. Fix this by disabling CodeQL on this pipeline and only running it against the nightly build.
1 parent 64bb147 commit 93fe079

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

build-tools/automation/azure-pipelines.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ extends:
7474
binskim:
7575
scanOutputDirectoryOnly: true
7676
codeql:
77-
${{ if ne(variables['Build.SourceBranch'], 'refs/heads/main') }}:
78-
compiled:
79-
enabled: false
80-
justificationForDisabling: CodeQL disabled for non-main branch builds
77+
compiled:
78+
enabled: false
79+
justificationForDisabling: CodeQL runs against the nightly build
8180
policheck:
8281
enabled: false
8382
justification: Built in task does not support multi-language scanning

build-tools/automation/yaml-templates/build-linux.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ stages:
3535
CC: gcc-10
3636
${{ if eq(parameters.use1ESTemplate, true) }}:
3737
templateContext:
38-
sdl:
39-
codeql:
40-
compiled:
41-
enabled: false
42-
justificationForDisabling: CodeQL runs against the Windows build and nightly macOS build
4338
outputs:
4439
- output: pipelineArtifact
4540
displayName: upload linux sdk

build-tools/automation/yaml-templates/build-macos.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ stages:
4343
clean: all
4444
${{ if eq(parameters.use1ESTemplate, true) }}:
4545
templateContext:
46-
sdl:
47-
codeql:
48-
compiled:
49-
enabled: false
50-
justificationForDisabling: CodeQL runs against the Windows build and nightly macOS build
5146
outputParentDirectory: ${{ parameters.xaSourcePath }}/bin
5247
outputs:
5348
- output: pipelineArtifact

0 commit comments

Comments
 (0)