From 769168180b3f950fce4895dd9d11b99de9aa8792 Mon Sep 17 00:00:00 2001 From: manvkaur <67894494+manvkaur@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:06:37 -0800 Subject: [PATCH 1/2] add run source languages var for codeql --- eng/ci/public-build.yml | 44 +++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/eng/ci/public-build.yml b/eng/ci/public-build.yml index a9854e7f..dc6ceafb 100644 --- a/eng/ci/public-build.yml +++ b/eng/ci/public-build.yml @@ -2,29 +2,29 @@ trigger: batch: true branches: include: - - dev - - sdk/* - - extensions/* + - dev + - sdk/* + - extensions/* pr: branches: include: - - dev + - dev schedules: -- cron: '0 0 * * MON' - displayName: At 12:00 AM, only on Monday - branches: - include: - - dev - always: true + - cron: '0 0 * * MON' + displayName: At 12:00 AM, only on Monday + branches: + include: + - dev + always: true resources: repositories: - - repository: 1es - type: git - name: 1ESPipelineTemplates/1ESPipelineTemplates - ref: refs/tags/release + - repository: 1es + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release variables: - template: /eng/templates/utils/variables.yml@self @@ -34,6 +34,8 @@ variables: value: true - name: codeql.runSourceLanguagesInSourceAnalysis value: true + - name: codeql.sourceLanguages + value: python, powershell extends: template: v1/1ES.Unofficial.PipelineTemplate.yml@1es @@ -45,10 +47,10 @@ extends: settings: skipBuildTagsForGitHubPullRequests: ${{ variables['System.PullRequest.IsFork'] }} stages: - - stage: Build - jobs: - - template: /eng/templates/jobs/build.yml@self - - stage: RunUnitTests - dependsOn: Build - jobs: - - template: /eng/templates/jobs/ci-unit-tests.yml@self \ No newline at end of file + - stage: Build + jobs: + - template: /eng/templates/jobs/build.yml@self + - stage: RunUnitTests + dependsOn: Build + jobs: + - template: /eng/templates/jobs/ci-unit-tests.yml@self From 55f40c09ef45f8e17664a921c3d59f71e6e507f2 Mon Sep 17 00:00:00 2001 From: manvkaur <67894494+manvkaur@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:10:31 -0800 Subject: [PATCH 2/2] revert indentation change --- eng/ci/public-build.yml | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/eng/ci/public-build.yml b/eng/ci/public-build.yml index dc6ceafb..222cdc2d 100644 --- a/eng/ci/public-build.yml +++ b/eng/ci/public-build.yml @@ -2,29 +2,29 @@ trigger: batch: true branches: include: - - dev - - sdk/* - - extensions/* + - dev + - sdk/* + - extensions/* pr: branches: include: - - dev + - dev schedules: - - cron: '0 0 * * MON' - displayName: At 12:00 AM, only on Monday - branches: - include: - - dev - always: true +- cron: '0 0 * * MON' + displayName: At 12:00 AM, only on Monday + branches: + include: + - dev + always: true resources: repositories: - - repository: 1es - type: git - name: 1ESPipelineTemplates/1ESPipelineTemplates - ref: refs/tags/release + - repository: 1es + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release variables: - template: /eng/templates/utils/variables.yml@self @@ -47,10 +47,10 @@ extends: settings: skipBuildTagsForGitHubPullRequests: ${{ variables['System.PullRequest.IsFork'] }} stages: - - stage: Build - jobs: - - template: /eng/templates/jobs/build.yml@self - - stage: RunUnitTests - dependsOn: Build - jobs: - - template: /eng/templates/jobs/ci-unit-tests.yml@self + - stage: Build + jobs: + - template: /eng/templates/jobs/build.yml@self + - stage: RunUnitTests + dependsOn: Build + jobs: + - template: /eng/templates/jobs/ci-unit-tests.yml@self \ No newline at end of file