Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Disable CodeQL on macOS, Linux, non-main jobs #9111

Merged
merged 4 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ extends:
binskim:
scanOutputDirectoryOnly: true
codeql:
runSourceLanguagesInSourceAnalysis: true
${{ if ne(variables['Build.SourceBranch'], 'refs/heads/main') }}:
compiled:
enabled: false
justificationForDisabling: CodeQL disabled for non-main branch builds
policheck:
enabled: false
justification: Built in task does not support multi-language scanning
Expand Down
5 changes: 5 additions & 0 deletions build-tools/automation/yaml-templates/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ stages:
CC: gcc-10
${{ if eq(parameters.use1ESTemplate, true) }}:
templateContext:
sdl:
codeql:
compiled:
enabled: false
justificationForDisabling: CodeQL runs against the Windows build and nightly macOS build
outputs:
- output: pipelineArtifact
displayName: upload linux sdk
Expand Down
5 changes: 5 additions & 0 deletions build-tools/automation/yaml-templates/build-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ stages:
clean: all
${{ if eq(parameters.use1ESTemplate, true) }}:
templateContext:
sdl:
codeql:
compiled:
enabled: false
justificationForDisabling: CodeQL runs against the Windows build and nightly macOS build
outputParentDirectory: ${{ parameters.xaSourcePath }}/bin
outputs:
- output: pipelineArtifact
Expand Down
Loading