From 61224488ae467f76d7e1923fbdf20dca8e4ec971 Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Fri, 21 Apr 2023 12:25:46 +0000 Subject: [PATCH] Update dependencies from https://github.com/dotnet/arcade build 20230420.2 (#1575) [main] Update dependencies from dotnet/arcade --- eng/Version.Details.xml | 20 +++++++++---------- eng/common/templates/job/job.yml | 15 ++++++++------ .../templates/steps/component-governance.yml | 13 ++++++++++++ global.json | 2 +- 4 files changed, 33 insertions(+), 17 deletions(-) create mode 100644 eng/common/templates/steps/component-governance.yml diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 44bc1599..dfaa95ce 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -3,25 +3,25 @@ - + https://github.com/dotnet/arcade - dca04a5ec44fe1e75535f51a4e0b9a7aa2318de7 + d75baf71a09ed067b48f484f29efc4e7f3e3df13 - + https://github.com/dotnet/arcade - dca04a5ec44fe1e75535f51a4e0b9a7aa2318de7 + d75baf71a09ed067b48f484f29efc4e7f3e3df13 - + https://github.com/dotnet/arcade - dca04a5ec44fe1e75535f51a4e0b9a7aa2318de7 + d75baf71a09ed067b48f484f29efc4e7f3e3df13 - + https://github.com/dotnet/arcade - dca04a5ec44fe1e75535f51a4e0b9a7aa2318de7 + d75baf71a09ed067b48f484f29efc4e7f3e3df13 - + https://github.com/dotnet/arcade - dca04a5ec44fe1e75535f51a4e0b9a7aa2318de7 + d75baf71a09ed067b48f484f29efc4e7f3e3df13 https://github.com/dotnet/arcade-services diff --git a/eng/common/templates/job/job.yml b/eng/common/templates/job/job.yml index b214a31d..a21533fd 100644 --- a/eng/common/templates/job/job.yml +++ b/eng/common/templates/job/job.yml @@ -25,7 +25,7 @@ parameters: enablePublishTestResults: false enablePublishUsingPipelines: false enableBuildRetry: false - disableComponentGovernance: false + disableComponentGovernance: '' componentGovernanceIgnoreDirectories: '' mergeTestResults: false testRunTitle: '' @@ -155,11 +155,14 @@ jobs: uploadRichNavArtifacts: ${{ coalesce(parameters.richCodeNavigationUploadArtifacts, false) }} continueOnError: true - - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), ne(parameters.disableComponentGovernance, 'true')) }}: - - task: ComponentGovernanceComponentDetection@0 - continueOnError: true - inputs: - ignoreDirectories: ${{ parameters.componentGovernanceIgnoreDirectories }} + - template: /eng/common/templates/steps/component-governance.yml + parameters: + ${{ if eq(parameters.disableComponentGovernance, '') }}: + ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(parameters.runAsPublic, 'false'), or(contains(variables['Build.SourceBranch'], 'internal/release'), eq(variables['Build.SourceBranch'], 'main'))) }}: + disableComponentGovernance: false + ${{ else }}: + disableComponentGovernance: true + componentGovernanceIgnoreDirectories: ${{ parameters.componentGovernanceIgnoreDirectories }} - ${{ if eq(parameters.enableMicrobuild, 'true') }}: - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: diff --git a/eng/common/templates/steps/component-governance.yml b/eng/common/templates/steps/component-governance.yml new file mode 100644 index 00000000..0ecec47b --- /dev/null +++ b/eng/common/templates/steps/component-governance.yml @@ -0,0 +1,13 @@ +parameters: + disableComponentGovernance: false + componentGovernanceIgnoreDirectories: '' + +steps: +- ${{ if eq(parameters.disableComponentGovernance, 'true') }}: + - script: "echo ##vso[task.setvariable variable=skipComponentGovernanceDetection]true" + displayName: Set skipComponentGovernanceDetection variable +- ${{ if ne(parameters.disableComponentGovernance, 'true') }}: + - task: ComponentGovernanceComponentDetection@0 + continueOnError: true + inputs: + ignoreDirectories: ${{ parameters.componentGovernanceIgnoreDirectories }} \ No newline at end of file diff --git a/global.json b/global.json index b9e7a516..57fe57e7 100644 --- a/global.json +++ b/global.json @@ -14,6 +14,6 @@ } }, "msbuild-sdks": { - "Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.23219.2" + "Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.23220.2" } }