From 785920fb728ea49192d2cb0eb1434dd61889ecbc Mon Sep 17 00:00:00 2001
From: "dotnet-maestro[bot]"
<42748379+dotnet-maestro[bot]@users.noreply.github.com>
Date: Thu, 18 Jul 2024 14:09:55 +0000
Subject: [PATCH] Update dependencies from https://github.com/dotnet/arcade
build 20240717.1 (#7003)
[main] Update dependencies from dotnet/arcade
---
eng/Version.Details.xml | 20 ++++++++++----------
eng/Versions.props | 6 +++---
eng/common/sdl/execute-all-sdl-tools.ps1 | 4 +---
eng/common/sdl/init-sdl.ps1 | 8 --------
eng/common/templates/steps/execute-sdl.yml | 5 ++++-
global.json | 4 ++--
6 files changed, 20 insertions(+), 27 deletions(-)
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index 98154fc2428..4fac79c1c5c 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -22,29 +22,29 @@
https://github.com/dotnet/roslyn-analyzers
b4d9a1334d5189172977ba8fddd00bda70161e4a
-
+
https://github.com/dotnet/arcade
- 94d461b3cffed34241b7be548b6983ec8506bfc3
+ fa3d544b066661522f1ec5d5e8cfd461a29b0f8a
-
+
https://github.com/dotnet/arcade
- 94d461b3cffed34241b7be548b6983ec8506bfc3
+ fa3d544b066661522f1ec5d5e8cfd461a29b0f8a
-
+
https://github.com/dotnet/arcade
- 94d461b3cffed34241b7be548b6983ec8506bfc3
+ fa3d544b066661522f1ec5d5e8cfd461a29b0f8a
-
+
https://github.com/dotnet/arcade
- 94d461b3cffed34241b7be548b6983ec8506bfc3
+ fa3d544b066661522f1ec5d5e8cfd461a29b0f8a
https://github.com/dotnet/installer
68e8abb1d3e1a240a6e4c29dcd220aae91681676
-
+
https://github.com/dotnet/arcade
- 94d461b3cffed34241b7be548b6983ec8506bfc3
+ fa3d544b066661522f1ec5d5e8cfd461a29b0f8a
https://github.com/dotnet/diagnostics
diff --git a/eng/Versions.props b/eng/Versions.props
index ad492d8074a..926ce2be10c 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -48,9 +48,9 @@
-->
- 8.0.0-beta.24366.7
- 8.0.0-beta.24366.7
- 8.0.0-beta.24366.7
+ 8.0.0-beta.24367.1
+ 8.0.0-beta.24367.1
+ 8.0.0-beta.24367.1
8.0.1
8.0.1-servicing.23580.8
diff --git a/eng/common/sdl/execute-all-sdl-tools.ps1 b/eng/common/sdl/execute-all-sdl-tools.ps1
index 4715d75e974..81ded5b7f47 100644
--- a/eng/common/sdl/execute-all-sdl-tools.ps1
+++ b/eng/common/sdl/execute-all-sdl-tools.ps1
@@ -6,7 +6,6 @@ Param(
[string] $BranchName=$env:BUILD_SOURCEBRANCH, # Optional: name of branch or version of gdn settings; defaults to master
[string] $SourceDirectory=$env:BUILD_SOURCESDIRECTORY, # Required: the directory where source files are located
[string] $ArtifactsDirectory = (Join-Path $env:BUILD_ARTIFACTSTAGINGDIRECTORY ('artifacts')), # Required: the directory where build artifacts are located
- [string] $AzureDevOpsAccessToken, # Required: access token for dnceng; should be provided via KeyVault
# Optional: list of SDL tools to run on source code. See 'configure-sdl-tool.ps1' for tools list
# format.
@@ -75,7 +74,7 @@ try {
}
Exec-BlockVerbosely {
- & $(Join-Path $PSScriptRoot 'init-sdl.ps1') -GuardianCliLocation $guardianCliLocation -Repository $RepoName -BranchName $BranchName -WorkingDirectory $workingDirectory -AzureDevOpsAccessToken $AzureDevOpsAccessToken -GuardianLoggerLevel $GuardianLoggerLevel
+ & $(Join-Path $PSScriptRoot 'init-sdl.ps1') -GuardianCliLocation $guardianCliLocation -Repository $RepoName -BranchName $BranchName -WorkingDirectory $workingDirectory -GuardianLoggerLevel $GuardianLoggerLevel
}
$gdnFolder = Join-Path $workingDirectory '.gdn'
@@ -104,7 +103,6 @@ try {
-TargetDirectory $targetDirectory `
-GdnFolder $gdnFolder `
-ToolsList $tools `
- -AzureDevOpsAccessToken $AzureDevOpsAccessToken `
-GuardianLoggerLevel $GuardianLoggerLevel `
-CrScanAdditionalRunConfigParams $CrScanAdditionalRunConfigParams `
-PoliCheckAdditionalRunConfigParams $PoliCheckAdditionalRunConfigParams `
diff --git a/eng/common/sdl/init-sdl.ps1 b/eng/common/sdl/init-sdl.ps1
index 3ac1d92b370..588ff8e22fb 100644
--- a/eng/common/sdl/init-sdl.ps1
+++ b/eng/common/sdl/init-sdl.ps1
@@ -3,7 +3,6 @@ Param(
[string] $Repository,
[string] $BranchName='master',
[string] $WorkingDirectory,
- [string] $AzureDevOpsAccessToken,
[string] $GuardianLoggerLevel='Standard'
)
@@ -21,14 +20,7 @@ $ci = $true
# Don't display the console progress UI - it's a huge perf hit
$ProgressPreference = 'SilentlyContinue'
-# Construct basic auth from AzDO access token; construct URI to the repository's gdn folder stored in that repository; construct location of zip file
-$encodedPat = [Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes(":$AzureDevOpsAccessToken"))
-$escapedRepository = [Uri]::EscapeDataString("/$Repository/$BranchName/.gdn")
-$uri = "https://dev.azure.com/dnceng/internal/_apis/git/repositories/sdl-tool-cfg/Items?path=$escapedRepository&versionDescriptor[versionOptions]=0&`$format=zip&api-version=5.0"
-$zipFile = "$WorkingDirectory/gdn.zip"
-
Add-Type -AssemblyName System.IO.Compression.FileSystem
-$gdnFolder = (Join-Path $WorkingDirectory '.gdn')
try {
# if the folder does not exist, we'll do a guardian init and push it to the remote repository
diff --git a/eng/common/templates/steps/execute-sdl.yml b/eng/common/templates/steps/execute-sdl.yml
index 301d5c591eb..fe0ebf8c904 100644
--- a/eng/common/templates/steps/execute-sdl.yml
+++ b/eng/common/templates/steps/execute-sdl.yml
@@ -34,16 +34,19 @@ steps:
displayName: Execute SDL (Overridden)
continueOnError: ${{ parameters.sdlContinueOnError }}
condition: ${{ parameters.condition }}
+ env:
+ GUARDIAN_DEFAULT_PACKAGE_SOURCE_SECRET: $(System.AccessToken)
- ${{ if eq(parameters.overrideParameters, '') }}:
- powershell: ${{ parameters.executeAllSdlToolsScript }}
-GuardianCliLocation $(GuardianCliLocation)
-NugetPackageDirectory $(Build.SourcesDirectory)\.packages
- -AzureDevOpsAccessToken $(dn-bot-dotnet-build-rw-code-rw)
${{ parameters.additionalParameters }}
displayName: Execute SDL
continueOnError: ${{ parameters.sdlContinueOnError }}
condition: ${{ parameters.condition }}
+ env:
+ GUARDIAN_DEFAULT_PACKAGE_SOURCE_SECRET: $(System.AccessToken)
- ${{ if ne(parameters.publishGuardianDirectoryToPipeline, 'false') }}:
# We want to publish the Guardian results and configuration for easy diagnosis. However, the
diff --git a/global.json b/global.json
index 1bb6380b4f3..1fd238d3aa9 100644
--- a/global.json
+++ b/global.json
@@ -26,7 +26,7 @@
},
"msbuild-sdks": {
"Microsoft.Build.NoTargets": "3.7.0",
- "Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.24366.7",
- "Microsoft.DotNet.Helix.Sdk": "8.0.0-beta.24366.7"
+ "Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.24367.1",
+ "Microsoft.DotNet.Helix.Sdk": "8.0.0-beta.24367.1"
}
}