From c583f4af146fc35412495ba1b2a1764ab1b8556c Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 22 Oct 2025 11:26:31 -0700 Subject: [PATCH] Only checkout PerfAutomation from azure-sdk-tools - Other files in azure-sdk-tools repo are unnecessary - Unnecessary checkout hurts perf and increases security footprint (#6801) Co-authored-by: Mike Harder --- eng/common/pipelines/templates/jobs/perf.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eng/common/pipelines/templates/jobs/perf.yml b/eng/common/pipelines/templates/jobs/perf.yml index 4e63700cd..2257d7830 100644 --- a/eng/common/pipelines/templates/jobs/perf.yml +++ b/eng/common/pipelines/templates/jobs/perf.yml @@ -105,9 +105,16 @@ jobs: - Name: ${{ parameters.LanguageRepoName }} Commitish: ${{ parameters.LanguageRepoCommitish }} WorkingDirectory: $(System.DefaultWorkingDirectory) + + - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml + parameters: + Paths: + - 'tools/perf-automation/Azure.Sdk.Tools.PerfAutomation' + Repositories: - Name: Azure/azure-sdk-tools Commitish: ${{ parameters.ToolsRepoCommitish }} WorkingDirectory: $(System.DefaultWorkingDirectory)/azure-sdk-tools + SkipCheckoutNone: true - template: /eng/common/pipelines/templates/steps/verify-agent-os.yml parameters: