From e1f83298a64db2f4966efd9838e09f8c39ad73d8 Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Wed, 16 Sep 2026 13:29:31 +0000 Subject: [PATCH] Update dependencies from build 332297 Updated Dependencies: Microsoft.AspNetCore.Mvc.Razor.Extensions.Tooling.Internal, Microsoft.CodeAnalysis.Razor.Tooling.Internal, Microsoft.NET.Sdk.Razor.SourceGenerators.Transport (Version 10.4.0-preview.26464.102 -> 10.4.0-preview.26466.105) Microsoft.Build (Version 18.9.15 -> 18.9.15) Microsoft.Build.Localization (Version 18.9.15-servicing-26464-102 -> 18.9.15-servicing-26466-105) Microsoft.Build.NuGetSdkResolver, NuGet.Build.Tasks, NuGet.Build.Tasks.Console, NuGet.Build.Tasks.Pack, NuGet.CommandLine.XPlat, NuGet.Commands, NuGet.Common, NuGet.Configuration, NuGet.Credentials, NuGet.DependencyResolver.Core, NuGet.Frameworks, NuGet.LibraryModel, NuGet.Localization, NuGet.Packaging, NuGet.ProjectModel, NuGet.Protocol, NuGet.Versioning (Version 7.9.0-rc.46502 -> 7.9.0-rc.46705) Microsoft.Build.Tasks.Git, Microsoft.SourceLink.AzureRepos.Git, Microsoft.SourceLink.Bitbucket.Git, Microsoft.SourceLink.Common, Microsoft.SourceLink.GitHub, Microsoft.SourceLink.GitLab, Microsoft.TemplateEngine.Abstractions, Microsoft.TemplateEngine.Authoring.TemplateVerifier, Microsoft.TemplateEngine.Edge, Microsoft.TemplateEngine.Orchestrator.RunnableProjects, Microsoft.TemplateEngine.Utils, Microsoft.TemplateSearch.Common (Version 10.0.402 -> 10.0.402) Microsoft.CodeAnalysis, Microsoft.CodeAnalysis.BuildClient, Microsoft.CodeAnalysis.CSharp, Microsoft.CodeAnalysis.CSharp.CodeStyle, Microsoft.CodeAnalysis.CSharp.Features, Microsoft.CodeAnalysis.CSharp.Workspaces, Microsoft.CodeAnalysis.ExternalAccess.HotReload, Microsoft.CodeAnalysis.PublicApiAnalyzers, Microsoft.CodeAnalysis.Workspaces.Common, Microsoft.CodeAnalysis.Workspaces.MSBuild, Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost, Microsoft.Net.Compilers.Toolset, Microsoft.Net.Compilers.Toolset.Framework (Version 5.9.0-1.26464.102 -> 5.9.0-1.26466.105) Microsoft.DotNet.Arcade.Sdk, Microsoft.DotNet.Build.Tasks.Installers, Microsoft.DotNet.Build.Tasks.Templating, Microsoft.DotNet.Build.Tasks.Workloads, Microsoft.DotNet.Helix.Sdk, Microsoft.DotNet.SignTool, Microsoft.DotNet.XliffTasks, Microsoft.DotNet.XUnitExtensions (Version 10.0.0-beta.26464.102 -> 10.0.0-beta.26466.105) Microsoft.FSharp.Compiler (Version 15.2.402-servicing.26464.102 -> 15.2.402-servicing.26466.105) Microsoft.NET.Test.Sdk, Microsoft.TestPlatform.Build, Microsoft.TestPlatform.CLI (Version 18.7.0-release-26464-102 -> 18.7.0-release-26466-105) Microsoft.TemplateEngine.Mocks, Microsoft.TemplateEngine.TestHelper, Microsoft.TemplateSearch.TemplateDiscovery (Version 10.0.402-servicing.26464.102 -> 10.0.402-servicing.26466.105) [[ commit created by automation ]] --- NuGet.config | 2 +- eng/Version.Details.props | 98 ++++---- eng/Version.Details.xml | 224 +++++++++--------- .../core-templates/job/helix-job-monitor.yml | 49 +++- eng/common/core-templates/job/job.yml | 3 +- .../core-templates/steps/send-to-helix.yml | 45 +++- global.json | 4 +- 7 files changed, 255 insertions(+), 170 deletions(-) diff --git a/NuGet.config b/NuGet.config index 16deb014c40b..6a0acee1bf7c 100644 --- a/NuGet.config +++ b/NuGet.config @@ -4,7 +4,7 @@ - + diff --git a/eng/Version.Details.props b/eng/Version.Details.props index 5de35fbd59c8..89e5e11f8a07 100644 --- a/eng/Version.Details.props +++ b/eng/Version.Details.props @@ -30,39 +30,39 @@ This file should be imported by eng/Versions.props 10.0.12 10.0.12-servicing.26422.108 10.0.12-servicing.26422.108 - 10.4.0-preview.26464.102 + 10.4.0-preview.26466.105 10.0.12 10.0.12 18.9.15 - 18.9.15-servicing-26464-102 - 7.9.0-rc.46502 + 18.9.15-servicing-26466-105 + 7.9.0-rc.46705 10.0.402 - 5.9.0-1.26464.102 - 5.9.0-1.26464.102 - 5.9.0-1.26464.102 - 5.9.0-1.26464.102 - 5.9.0-1.26464.102 - 5.9.0-1.26464.102 - 5.9.0-1.26464.102 - 5.9.0-1.26464.102 - 10.4.0-preview.26464.102 - 5.9.0-1.26464.102 - 5.9.0-1.26464.102 - 5.9.0-1.26464.102 + 5.9.0-1.26466.105 + 5.9.0-1.26466.105 + 5.9.0-1.26466.105 + 5.9.0-1.26466.105 + 5.9.0-1.26466.105 + 5.9.0-1.26466.105 + 5.9.0-1.26466.105 + 5.9.0-1.26466.105 + 10.4.0-preview.26466.105 + 5.9.0-1.26466.105 + 5.9.0-1.26466.105 + 5.9.0-1.26466.105 2.0.0-rtm.1.26326.116 2.2.12 - 10.0.0-beta.26464.102 - 10.0.0-beta.26464.102 - 10.0.0-beta.26464.102 - 10.0.0-beta.26464.102 - 10.0.0-beta.26464.102 - 10.0.0-beta.26464.102 + 10.0.0-beta.26466.105 + 10.0.0-beta.26466.105 + 10.0.0-beta.26466.105 + 10.0.0-beta.26466.105 + 10.0.0-beta.26466.105 + 10.0.0-beta.26466.105 10.0.12 10.0.12 10.0.12-servicing.26422.108 10.0.12-servicing.26422.108 - 10.0.0-beta.26464.102 - 10.0.0-beta.26464.102 + 10.0.0-beta.26466.105 + 10.0.0-beta.26466.105 10.0.12 10.0.12 10.0.12 @@ -73,18 +73,18 @@ This file should be imported by eng/Versions.props 10.0.12 10.0.12 10.0.12 - 15.2.402-servicing.26464.102 + 15.2.402-servicing.26466.105 10.0.12 10.0.12 - 5.9.0-1.26464.102 - 5.9.0-1.26464.102 + 5.9.0-1.26466.105 + 5.9.0-1.26466.105 10.0.12-servicing.26422.108 10.0.12 10.0.12 10.0.0-preview.7.25377.103 - 10.4.0-preview.26464.102 + 10.4.0-preview.26466.105 10.0.12-servicing.26422.108 - 18.7.0-release-26464-102 + 18.7.0-release-26466-105 10.0.12 10.0.12-servicing.26422.108 10.0.402 @@ -95,34 +95,34 @@ This file should be imported by eng/Versions.props 10.0.402 10.0.402 10.0.402 - 10.0.402-servicing.26464.102 + 10.0.402-servicing.26466.105 10.0.402 - 10.0.402-servicing.26464.102 + 10.0.402-servicing.26466.105 10.0.402 10.0.402 - 10.0.402-servicing.26464.102 - 18.7.0-release-26464-102 - 18.7.0-release-26464-102 + 10.0.402-servicing.26466.105 + 18.7.0-release-26466-105 + 18.7.0-release-26466-105 3.2.12 10.0.12 10.0.12-servicing.26422.108 10.0.12 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 - 7.9.0-rc.46502 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 + 7.9.0-rc.46705 10.0.12 2.0.12 10.0.12 diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 3fd5c8c49e0b..d386c40468a1 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -1,42 +1,42 @@ - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet @@ -74,140 +74,140 @@ https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet @@ -378,25 +378,25 @@ https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet 95017c711e6afc1085133d440e42b4bd78155701 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet 95017c711e6afc1085133d440e42b4bd78155701 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet @@ -415,27 +415,27 @@ https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 @@ -527,9 +527,9 @@ https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet 95017c711e6afc1085133d440e42b4bd78155701 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet @@ -541,37 +541,37 @@ - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 - + https://github.com/dotnet/dotnet - 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 + 3073618cc1ab03586872e1cf3035afd377d66df6 https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet diff --git a/eng/common/core-templates/job/helix-job-monitor.yml b/eng/common/core-templates/job/helix-job-monitor.yml index 53bbf74927e7..1e685f593314 100644 --- a/eng/common/core-templates/job/helix-job-monitor.yml +++ b/eng/common/core-templates/job/helix-job-monitor.yml @@ -52,11 +52,29 @@ parameters: type: string default: https://helix.dot.net/ -# Helix API access token forwarded to the tool via the HELIX_ACCESSTOKEN environment variable. +# Helix API access token forwarded via HELIX_ACCESSTOKEN. Not forwarded when +# useEntraAuthentication is true. - name: helixAccessToken type: string default: '' +# Use a refreshable Entra credential instead of a PAT or anonymous access. +- name: useEntraAuthentication + type: boolean + default: false + +# Explicit Entra scope for a custom Helix API host (--helix-entra-scope). +# Production and staging scopes are inferred when omitted. +- name: helixEntraScope + type: string + default: '' + +# Azure service connection ID authorized for Helix. Required when +# useEntraAuthentication is true. +- name: azureSubscription + type: string + default: '' + # Polling interval in seconds (--polling-interval-seconds). - name: pollingIntervalSeconds type: number @@ -141,6 +159,26 @@ jobs: - checkout: self fetchDepth: 1 + - ${{ if and(eq(parameters.useEntraAuthentication, true), eq(parameters.azureSubscription, '')) }}: + - pwsh: throw "azureSubscription must be set when useEntraAuthentication is true." + displayName: Validate Helix Entra authentication + + - ${{ if eq(parameters.useEntraAuthentication, true) }}: + - task: AzureCLI@2 + displayName: Initialize Helix Entra authentication + inputs: + azureSubscription: ${{ parameters.azureSubscription }} + addSpnToEnvironment: true + scriptType: pscore + scriptLocation: inlineScript + inlineScript: | + if ([string]::IsNullOrWhiteSpace($env:servicePrincipalId) -or [string]::IsNullOrWhiteSpace($env:tenantId)) { + throw "The Helix Azure service connection did not provide a service principal or tenant ID." + } + + Write-Host "##vso[task.setvariable variable=HelixEntraClientId]$env:servicePrincipalId" + Write-Host "##vso[task.setvariable variable=HelixEntraTenantId]$env:tenantId" + - ${{ if ne(parameters.toolNupkgArtifactName, '') }}: - task: DownloadPipelineArtifact@2 displayName: Download Helix Job Monitor artifact @@ -214,6 +252,8 @@ jobs: toolArgs=( --helix-base-uri '${{ parameters.helixBaseUri }}' + --use-entra-authentication '${{ parameters.useEntraAuthentication }}' + --helix-entra-scope '${{ parameters.helixEntraScope }}' --polling-interval-seconds '${{ parameters.pollingIntervalSeconds }}' --fail-on-failed-tests '${{ parameters.failWorkItemsWithFailedTests }}' --allow-no-helix-jobs '${{ parameters.allowNoHelixJobs }}' @@ -275,4 +315,9 @@ jobs: displayName: Monitor Helix Jobs env: SYSTEM_ACCESSTOKEN: $(System.AccessToken) - HELIX_ACCESSTOKEN: ${{ parameters.helixAccessToken }} + ${{ if eq(parameters.useEntraAuthentication, false) }}: + HELIX_ACCESSTOKEN: ${{ parameters.helixAccessToken }} + ${{ if eq(parameters.useEntraAuthentication, true) }}: + AZURESUBSCRIPTION_CLIENT_ID: $(HelixEntraClientId) + AZURESUBSCRIPTION_TENANT_ID: $(HelixEntraTenantId) + AZURESUBSCRIPTION_SERVICE_CONNECTION_ID: ${{ parameters.azureSubscription }} diff --git a/eng/common/core-templates/job/job.yml b/eng/common/core-templates/job/job.yml index eaed6d87e653..a64f1c496a74 100644 --- a/eng/common/core-templates/job/job.yml +++ b/eng/common/core-templates/job/job.yml @@ -109,7 +109,8 @@ jobs: - name: ${{ pair.key }} value: ${{ pair.value }} - # DotNet-HelixApi-Access provides 'HelixApiAccessToken' for internal builds + # DotNet-HelixApi-Access provides 'HelixApiAccessToken' for internal builds. + # Entra-enabled Helix templates do not forward this value to their processes. - ${{ if and(eq(parameters.enableTelemetry, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - group: DotNet-HelixApi-Access diff --git a/eng/common/core-templates/steps/send-to-helix.yml b/eng/common/core-templates/steps/send-to-helix.yml index 37678b0389b2..3951e47104a8 100644 --- a/eng/common/core-templates/steps/send-to-helix.yml +++ b/eng/common/core-templates/steps/send-to-helix.yml @@ -4,7 +4,10 @@ parameters: HelixType: 'tests/default/' # required -- Helix telemetry which identifies what type of data this is; should include "test" for clarity and must end in '/' HelixBuild: $(Build.BuildNumber) # required -- the build number Helix will use to identify this -- automatically set to the AzDO build number HelixTargetQueues: '' # required -- semicolon-delimited list of Helix queues to test on; see https://helix.dot.net/ for a list of queues - HelixAccessToken: '' # required -- access token to make Helix API requests; should be provided by the appropriate variable group + HelixAccessToken: '' # optional -- legacy access token; not forwarded when HelixUseEntraAuthentication is true + HelixUseEntraAuthentication: false # optional -- use refreshable Entra authentication instead of a PAT or anonymous access + HelixEntraScope: '' # optional -- explicit Entra scope required for custom HelixBaseUri hosts + HelixAzureSubscription: '' # required when HelixUseEntraAuthentication is true -- Azure service connection ID authorized for Helix HelixProjectPath: 'eng/common/helixpublish.proj' # optional -- path to the project file to build relative to BUILD_SOURCESDIRECTORY HelixProjectArguments: '' # optional -- arguments passed to the build command HelixConfiguration: '' # optional -- additional property attached to a job @@ -32,12 +35,35 @@ parameters: continueOnError: false # optional -- determines whether to continue the build if the step errors; defaults to false steps: + - ${{ if and(eq(parameters.HelixUseEntraAuthentication, true), eq(parameters.HelixAzureSubscription, '')) }}: + - pwsh: throw "HelixAzureSubscription must be set when HelixUseEntraAuthentication is true." + displayName: Validate Helix Entra authentication + condition: ${{ parameters.condition }} + + - ${{ if eq(parameters.HelixUseEntraAuthentication, true) }}: + - task: AzureCLI@2 + displayName: Initialize Helix Entra authentication + inputs: + azureSubscription: ${{ parameters.HelixAzureSubscription }} + addSpnToEnvironment: true + scriptType: pscore + scriptLocation: inlineScript + inlineScript: | + if ([string]::IsNullOrWhiteSpace($env:servicePrincipalId) -or [string]::IsNullOrWhiteSpace($env:tenantId)) { + throw "The Helix Azure service connection did not provide a service principal or tenant ID." + } + + Write-Host "##vso[task.setvariable variable=HelixEntraClientId]$env:servicePrincipalId" + Write-Host "##vso[task.setvariable variable=HelixEntraTenantId]$env:tenantId" + condition: ${{ parameters.condition }} + - powershell: > $(Build.SourcesDirectory)\eng\common\msbuild.ps1 $(Build.SourcesDirectory)/${{ parameters.HelixProjectPath }} /restore /p:TreatWarningsAsErrors=false /p:EnableHelixJobMonitor=${{ parameters.UseHelixMonitor }} + /p:HelixUseEntraAuthentication=${{ parameters.HelixUseEntraAuthentication }} ${{ parameters.HelixProjectArguments }} /t:Test /bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/SendToHelix.binlog @@ -49,7 +75,13 @@ steps: HelixBuild: ${{ parameters.HelixBuild }} HelixConfiguration: ${{ parameters.HelixConfiguration }} HelixTargetQueues: ${{ parameters.HelixTargetQueues }} - HelixAccessToken: ${{ parameters.HelixAccessToken }} + ${{ if eq(parameters.HelixUseEntraAuthentication, false) }}: + HelixAccessToken: ${{ parameters.HelixAccessToken }} + ${{ if eq(parameters.HelixUseEntraAuthentication, true) }}: + AZURESUBSCRIPTION_CLIENT_ID: $(HelixEntraClientId) + AZURESUBSCRIPTION_TENANT_ID: $(HelixEntraTenantId) + AZURESUBSCRIPTION_SERVICE_CONNECTION_ID: ${{ parameters.HelixAzureSubscription }} + HelixEntraScope: ${{ parameters.HelixEntraScope }} HelixPreCommands: ${{ parameters.HelixPreCommands }} HelixPostCommands: ${{ parameters.HelixPostCommands }} WorkItemDirectory: ${{ parameters.WorkItemDirectory }} @@ -76,6 +108,7 @@ steps: /restore /p:TreatWarningsAsErrors=false /p:EnableHelixJobMonitor=${{ parameters.UseHelixMonitor }} + /p:HelixUseEntraAuthentication=${{ parameters.HelixUseEntraAuthentication }} ${{ parameters.HelixProjectArguments }} /t:Test /bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/SendToHelix.binlog @@ -87,7 +120,13 @@ steps: HelixBuild: ${{ parameters.HelixBuild }} HelixConfiguration: ${{ parameters.HelixConfiguration }} HelixTargetQueues: ${{ parameters.HelixTargetQueues }} - HelixAccessToken: ${{ parameters.HelixAccessToken }} + ${{ if eq(parameters.HelixUseEntraAuthentication, false) }}: + HelixAccessToken: ${{ parameters.HelixAccessToken }} + ${{ if eq(parameters.HelixUseEntraAuthentication, true) }}: + AZURESUBSCRIPTION_CLIENT_ID: $(HelixEntraClientId) + AZURESUBSCRIPTION_TENANT_ID: $(HelixEntraTenantId) + AZURESUBSCRIPTION_SERVICE_CONNECTION_ID: ${{ parameters.HelixAzureSubscription }} + HelixEntraScope: ${{ parameters.HelixEntraScope }} HelixPreCommands: ${{ parameters.HelixPreCommands }} HelixPostCommands: ${{ parameters.HelixPostCommands }} WorkItemDirectory: ${{ parameters.WorkItemDirectory }} diff --git a/global.json b/global.json index bc664e81dd7e..3bd2dca19c48 100644 --- a/global.json +++ b/global.json @@ -22,8 +22,8 @@ } }, "msbuild-sdks": { - "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.26464.102", - "Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.26464.102", + "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.26466.105", + "Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.26466.105", "Microsoft.Build.NoTargets": "3.7.0", "Microsoft.Build.Traversal": "3.4.0", "Microsoft.WixToolset.Sdk": "6.0.3-dotnet.6"