From 0d3512fd7ef108fdc30ba2bbbe2b64e23eaa6503 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Nov 2025 10:06:26 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/microsoft/go-infra/goinstallscript Bumps [github.com/microsoft/go-infra/goinstallscript](https://github.com/microsoft/go-infra) from 1.0.0 to 1.1.0. - [Release notes](https://github.com/microsoft/go-infra/releases) - [Commits](https://github.com/microsoft/go-infra/compare/goinstallscript/v1.0.0...goinstallscript/v1.1.0) --- updated-dependencies: - dependency-name: github.com/microsoft/go-infra/goinstallscript dependency-version: 1.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- eng/_util/go.mod | 2 +- eng/_util/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/_util/go.mod b/eng/_util/go.mod index d13165859b..4c65e8cb25 100644 --- a/eng/_util/go.mod +++ b/eng/_util/go.mod @@ -9,7 +9,7 @@ go 1.24.0 require ( github.com/golang-jwt/jwt/v5 v5.3.0 github.com/microsoft/go-infra v0.0.7 - github.com/microsoft/go-infra/goinstallscript v1.0.0 + github.com/microsoft/go-infra/goinstallscript v1.1.0 golang.org/x/net v0.46.0 golang.org/x/sys v0.37.0 ) diff --git a/eng/_util/go.sum b/eng/_util/go.sum index 339fe51a7b..d4af9ae9ff 100644 --- a/eng/_util/go.sum +++ b/eng/_util/go.sum @@ -16,8 +16,8 @@ github.com/microsoft/azure-devops-go-api/azuredevops v1.0.0-b5 h1:YH424zrwLTlyHS github.com/microsoft/azure-devops-go-api/azuredevops v1.0.0-b5/go.mod h1:PoGiBqKSQK1vIfQ+yVaFcGjDySHvym6FM1cNYnwzbrY= github.com/microsoft/go-infra v0.0.7 h1:wl67HhAGlGn6mnFGNFch4F49AC4CN1FQxYiduI4DQbE= github.com/microsoft/go-infra v0.0.7/go.mod h1:IOooBUtSykqU41l41GzZx7/VLmzm1zVQ5IQ/1YpyH+k= -github.com/microsoft/go-infra/goinstallscript v1.0.0 h1:LFakXWLma5+OlsGRvEMxoI6OpF8KMZACzNMKZ5NEmkk= -github.com/microsoft/go-infra/goinstallscript v1.0.0/go.mod h1:SFsdKAEHdmGsGoh8FkksVaxoQ3rnnJ/TBqN09Ml/0Cw= +github.com/microsoft/go-infra/goinstallscript v1.1.0 h1:63Zo4Iw1Ft0swdVl+LKCZPPKv1QZiIRY3ZgyhJyMr5A= +github.com/microsoft/go-infra/goinstallscript v1.1.0/go.mod h1:SFsdKAEHdmGsGoh8FkksVaxoQ3rnnJ/TBqN09Ml/0Cw= golang.org/x/net v0.46.0 h1:giFlY12I07fugqwPuWJi68oOnpfqFnJIJzaIIm2JVV4= golang.org/x/net v0.46.0/go.mod h1:Q9BGdFy1y4nkUwiLvT5qtyhAnEHgnQ/zd8PfU6nc210= golang.org/x/oauth2 v0.32.0 h1:jsCblLleRMDrxMN29H3z/k1KliIvpLgCkE6R8FXXNgY= From 0dc612bd75dbc1ad00fc1ea6f98bfe590bc010eb Mon Sep 17 00:00:00 2001 From: George Adams Date: Tue, 11 Nov 2025 14:04:08 +0000 Subject: [PATCH 2/2] update go-install.ps1 --- eng/_util/go-install.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eng/_util/go-install.ps1 b/eng/_util/go-install.ps1 index ddebb164aa..8a58699318 100644 --- a/eng/_util/go-install.ps1 +++ b/eng/_util/go-install.ps1 @@ -53,6 +53,9 @@ .PARAMETER AzurePipelinePath If set, it will print an Azure DevOps logging command that causes the Azure DevOps to update the PATH environment variable of subsequent build steps to include the binaries folder. +.PARAMETER GitHubActionsPath + If set, it will append the binaries folder to the GITHUB_PATH environment file, causing GitHub Actions + to update the PATH environment variable of subsequent build steps to include the binaries folder. .PARAMETER ProxyAddress If set, it will use the proxy when making web requests .PARAMETER ProxyUseDefaultCredentials @@ -89,6 +92,7 @@ param( [switch]$DryRun, [switch]$NoPath, [switch]$AzurePipelinePath, + [switch]$GitHubActionsPath, [string]$ProxyAddress, [switch]$ProxyUseDefaultCredentials, [string[]]$ProxyBypassList=@(), @@ -686,6 +690,11 @@ function Prepend-ToolsetPathEnv([string]$InstallRoot, [string]$SpecificVersion) Say "Running an Azure Pipelines logging command to prepend `"$BinPath`" to the PATH." Say "##vso[task.prependpath]$BinPath" } + + if ($GitHubActionsPath) { + Say "Appending `"$BinPath`" to the GITHUB_PATH file." + $BinPath | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + } } function PrintDryRunOutput($Invocation) {