From 02316d60082ee406093af11af75a6a5add9adb66 Mon Sep 17 00:00:00 2001 From: Madhusudhan-MSFT <53235553+Madhusudhan-MSFT@users.noreply.github.com> Date: Wed, 25 Oct 2023 10:04:52 -0700 Subject: [PATCH] [WinGet-Pkgs] WinGet-Pkgs cg-pipeline.yaml migration to 1ESPipeline (#123664) This PR migrates the following WinGet-Pkgs cg-pipeline pipelines to 1ESPipeline - cg-pipeline.yaml Co-authored-by: Madhusudhan Gumbalapura Sudarshan --- DevOpsPipelineDefinitions/cg-pipeline.yaml | 39 ++++++++++++++++------ 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/DevOpsPipelineDefinitions/cg-pipeline.yaml b/DevOpsPipelineDefinitions/cg-pipeline.yaml index 507432f004f..aa4ddc0fbe0 100644 --- a/DevOpsPipelineDefinitions/cg-pipeline.yaml +++ b/DevOpsPipelineDefinitions/cg-pipeline.yaml @@ -5,16 +5,35 @@ trigger: none pr: none -pool: - vmImage: windows-latest - variables: runCodesignValidationInjection: ${{ false }} -steps: - - task: ComponentGovernanceComponentDetection@0 - displayName: Component Governance - inputs: - scanType: 'Register' - verbosity: 'Verbose' - alertWarningLevel: 'High' +resources: + repositories: + - repository: 1ESPipelineTemplates + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release + +extends: + template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates + parameters: + pool: + name: Azure-Pipelines-1ESPT-ExDShared + image: windows-2022 + os: windows + customBuildTags: + # This is added by 1ES migration tool and it is okay to remove in the future. + - ES365AIMigrationTooling + + stages: + - stage: Component_Governance + jobs: + - job: Job + steps: + - task: ComponentGovernanceComponentDetection@0 + displayName: Component Governance + inputs: + scanType: 'Register' + verbosity: 'Verbose' + alertWarningLevel: 'High'