From 4454c9a3a74cc2c371eb67e75f490fd84d334a83 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:58:13 -0800 Subject: [PATCH 1/5] Don't run CodeQL on tests in release pipeline --- azure-pipelines.release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.release.yml b/azure-pipelines.release.yml index 64e2da5f5b8e8..8e5242f82bb8b 100644 --- a/azure-pipelines.release.yml +++ b/azure-pipelines.release.yml @@ -10,6 +10,9 @@ resources: name: 1ESPipelineTemplates/1ESPipelineTemplates ref: refs/tags/release +variables: + Codeql.ExcludePathPatterns: 'tests/**' + extends: template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines parameters: From 173ea2fa87c3201da5bb9b8a16df7317dfa8b932 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:23:12 -0800 Subject: [PATCH 2/5] Update azure-pipelines.release.yml --- azure-pipelines.release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.release.yml b/azure-pipelines.release.yml index 8e5242f82bb8b..c8308a4727a30 100644 --- a/azure-pipelines.release.yml +++ b/azure-pipelines.release.yml @@ -11,7 +11,7 @@ resources: ref: refs/tags/release variables: - Codeql.ExcludePathPatterns: 'tests/**' + Codeql.ExcludePathPatterns: '**/tests/**' extends: template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines From 41366ef5284e25b079edf646a4231e5293334555 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Sat, 7 Dec 2024 09:12:33 -0800 Subject: [PATCH 3/5] Update azure-pipelines.release.yml --- azure-pipelines.release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.release.yml b/azure-pipelines.release.yml index c8308a4727a30..31e53355ee4f5 100644 --- a/azure-pipelines.release.yml +++ b/azure-pipelines.release.yml @@ -11,7 +11,7 @@ resources: ref: refs/tags/release variables: - Codeql.ExcludePathPatterns: '**/tests/**' + Codeql.ExcludePathPatterns: 'tests' extends: template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines From 01635259fe982f69e876b7bdc6d0667bdb473df6 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Sat, 7 Dec 2024 10:28:08 -0800 Subject: [PATCH 4/5] star star --- azure-pipelines.release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.release.yml b/azure-pipelines.release.yml index 31e53355ee4f5..06ec6b6f0b65c 100644 --- a/azure-pipelines.release.yml +++ b/azure-pipelines.release.yml @@ -11,7 +11,7 @@ resources: ref: refs/tags/release variables: - Codeql.ExcludePathPatterns: 'tests' + Codeql.ExcludePathPatterns: '**/tests' extends: template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines From 557470db571b9b3b9db7860fe8eff847b9ab2ae3 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:42:21 -0800 Subject: [PATCH 5/5] Tweak config --- .github/codeql/codeql-configuration.yml | 5 +---- azure-pipelines.release.yml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/codeql/codeql-configuration.yml b/.github/codeql/codeql-configuration.yml index 5012a8c080e48..dbe5b23a53c56 100644 --- a/.github/codeql/codeql-configuration.yml +++ b/.github/codeql/codeql-configuration.yml @@ -1,8 +1,5 @@ name: CodeQL Configuration -paths: - - src - - scripts - - Herebyfile.mjs paths-ignore: - src/lib + - tests diff --git a/azure-pipelines.release.yml b/azure-pipelines.release.yml index 06ec6b6f0b65c..fdf1415501094 100644 --- a/azure-pipelines.release.yml +++ b/azure-pipelines.release.yml @@ -11,7 +11,7 @@ resources: ref: refs/tags/release variables: - Codeql.ExcludePathPatterns: '**/tests' + Codeql.InitParameters: '--codescanning-config=$(Build.SourcesDirectory)/.github/codeql/codeql-configuration.yml' extends: template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines