From bbb6624035c217b637420d047fb49a6a11684970 Mon Sep 17 00:00:00 2001 From: hallvictoria <59299039+hallvictoria@users.noreply.github.com> Date: Fri, 6 Dec 2024 15:40:34 -0600 Subject: [PATCH] reformat excludePathPatterns (#1619) Co-authored-by: Victoria Hall --- eng/ci/official-build.yml | 5 ++--- eng/ci/public-build.yml | 13 ++++++------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/eng/ci/official-build.yml b/eng/ci/official-build.yml index cdf7175e..ad332eb2 100644 --- a/eng/ci/official-build.yml +++ b/eng/ci/official-build.yml @@ -30,6 +30,8 @@ resources: variables: - template: /eng/templates/utils/variables.yml@self - template: /eng/templates/utils/official-variables.yml@self + - name: codeql.excludePathPatterns + value: deps/,build/ extends: template: v1/1ES.Official.PipelineTemplate.yml@1es @@ -39,9 +41,6 @@ extends: image: 1es-windows-2022 os: windows sdl: - codeql: - # Exclude dependencies from CodeQL analysis - excludePathPatterns: '/deps,/build' codeSignValidation: enabled: true break: true diff --git a/eng/ci/public-build.yml b/eng/ci/public-build.yml index 9806a86b..a9854e7f 100644 --- a/eng/ci/public-build.yml +++ b/eng/ci/public-build.yml @@ -28,6 +28,12 @@ resources: variables: - template: /eng/templates/utils/variables.yml@self + - name: codeql.excludePathPatterns + value: deps/,build/ + - name: codeql.compiled.enabled + value: true + - name: codeql.runSourceLanguagesInSourceAnalysis + value: true extends: template: v1/1ES.Unofficial.PipelineTemplate.yml@1es @@ -36,13 +42,6 @@ extends: name: 1es-pool-azfunc-public image: 1es-windows-2022 os: windows - sdl: - codeql: - compiled: - enabled: true # still only runs for default branch - runSourceLanguagesInSourceAnalysis: true - # Exclude dependencies from CodeQL analysis - excludePathPatterns: '/deps,/build' settings: skipBuildTagsForGitHubPullRequests: ${{ variables['System.PullRequest.IsFork'] }} stages: