From af24896cd1b1b5e844a482d9b64a5c7477954420 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Mon, 20 Oct 2025 18:34:43 +0000 Subject: [PATCH] Add CG.ignoreDirectories in ci.yml and specify sdk in global.json --- azure-pipelines/builds/ci.yml | 4 ++++ azure-pipelines/templates/stages/build.yml | 2 ++ global.json | 9 +++++++++ 3 files changed, 15 insertions(+) diff --git a/azure-pipelines/builds/ci.yml b/azure-pipelines/builds/ci.yml index 12bb81957f..dda6b0a315 100644 --- a/azure-pipelines/builds/ci.yml +++ b/azure-pipelines/builds/ci.yml @@ -25,6 +25,10 @@ extends: template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate parameters: sdl: + componentgovernance: + # These directories need to be kept in-sync with the 'componentGovernanceIgnoreDirectories' + # specified in ../templates/stages/build.yml + ignoreDirectories: "src/referencePackages,artifacts/sb" policheck: enabled: true sourceAnalysisPool: diff --git a/azure-pipelines/templates/stages/build.yml b/azure-pipelines/templates/stages/build.yml index d83bf50493..029962a9db 100644 --- a/azure-pipelines/templates/stages/build.yml +++ b/azure-pipelines/templates/stages/build.yml @@ -18,6 +18,8 @@ stages: steps: - template: ${{ parameters.engCommonTemplatesDir }}/steps/source-build.yml parameters: + # These directories need to be kept in-sync with the 'componentGovernance/ignoreDirectories' + # specified in ../../builds/ci.yml componentGovernanceIgnoreDirectories: - src/referencePackages - artifacts/sb diff --git a/global.json b/global.json index 28b91866fc..0457828259 100644 --- a/global.json +++ b/global.json @@ -1,4 +1,13 @@ { + "sdk": { + "version": "9.0.111", + "rollForward": "latestPatch", + "paths": [ + ".dotnet", + "$host$" + ], + "errorMessage": "The required .NET SDK wasn't found. Please run ./eng/common/dotnet.cmd/sh to install it." + }, "tools": { "dotnet": "9.0.111" },