Skip to content

CodeQL: Exclude extract folder during build stage #801

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

Merged
merged 5 commits into from
Dec 6, 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
25 changes: 6 additions & 19 deletions eng/ci/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ resources:
variables:
- template: ci/variables/build.yml@eng
- template: ci/variables/cfs.yml@eng
- name: codeql.language
value: java,powershell
- name: codeql.buildIdentifier
value: java_worker_official
- name: codeql.excludePathPatterns
value: extract/inst

extends:
template: v1/1ES.Official.PipelineTemplate.yml@1es
Expand All @@ -41,35 +47,16 @@ extends:

stages:
- stage: Build
templateContext:
sdl:
codeql:
language: java,powershell
runSourceLanguagesInSourceAnalysis: true
buildIdentifier: java_worker_official
excludePathPatterns: '/extract/inst'
jobs:
- template: /eng/ci/templates/official/jobs/build-artifacts.yml@self

- stage: TestWindows
dependsOn: Build
templateContext:
sdl:
codeql:
language: csharp
buildIdentifier: java_worker_csharp_official
excludePathPatterns: '/extract/inst'
jobs:
- template: /eng/ci/templates/official/jobs/run-e2e-tests-windows.yml@self

- stage: TestLinux
dependsOn:
- TestWindows
templateContext:
sdl:
codeql:
compiled:
enabled: false
justificationForDisabling: 'Running the scan in TestWindows stage'
jobs:
- template: /eng/ci/templates/official/jobs/run-e2e-tests-linux.yml@self
27 changes: 8 additions & 19 deletions eng/ci/public-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ resources:
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

variables:
- name: codeql.language
value: java,powershell
- name: codeql.buildIdentifier
value: java_worker_public
- name: codeql.excludePathPatterns
value: extract/inst

extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es
parameters:
Expand All @@ -38,35 +46,16 @@ extends:

stages:
- stage: Build
templateContext:
sdl:
codeql:
language: java,powershell
buildIdentifier: java_worker_public
excludePathPatterns: '/extract/inst'
runSourceLanguagesInSourceAnalysis: true
jobs:
- template: /eng/ci/templates/jobs/build.yml@self

- stage: TestWindows
dependsOn: Build
templateContext:
sdl:
codeql:
language: csharp
buildIdentifier: java_worker_csharp_public
excludePathPatterns: '/extract/inst'
jobs:
- template: /eng/ci/templates/jobs/run-emulated-tests-windows.yml@self

- stage: TestLinux
dependsOn:
- TestWindows
templateContext:
sdl:
codeql:
compiled:
enabled: false
justificationForDisabling: 'Running the scan in TestWindows stage'
jobs:
- template: /eng/ci/templates/jobs/run-emulated-tests-linux.yml@self