Skip to content

Commit a9cadb0

Browse files
Add CG.ignoreDirectories in ci.yml and specify sdk in global.json (#1434)
1 parent 2621104 commit a9cadb0

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

azure-pipelines/builds/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ extends:
2525
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
2626
parameters:
2727
sdl:
28+
componentgovernance:
29+
# These directories need to be kept in-sync with the 'componentGovernanceIgnoreDirectories'
30+
# specified in ../templates/stages/build.yml
31+
ignoreDirectories: "src/referencePackages,artifacts/sb"
2832
policheck:
2933
enabled: true
3034
sourceAnalysisPool:

azure-pipelines/templates/stages/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ stages:
1818
steps:
1919
- template: ${{ parameters.engCommonTemplatesDir }}/steps/source-build.yml
2020
parameters:
21+
# These directories need to be kept in-sync with the 'componentGovernance/ignoreDirectories'
22+
# specified in ../../builds/ci.yml
2123
componentGovernanceIgnoreDirectories:
2224
- src/referencePackages
2325
- artifacts/sb

global.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
{
2+
"sdk": {
3+
"version": "9.0.111",
4+
"rollForward": "latestPatch",
5+
"paths": [
6+
".dotnet",
7+
"$host$"
8+
],
9+
"errorMessage": "The required .NET SDK wasn't found. Please run ./eng/common/dotnet.cmd/sh to install it."
10+
},
211
"tools": {
312
"dotnet": "9.0.111"
413
},

0 commit comments

Comments
 (0)