Browse Source
[main] Update dependencies from dotnet/arcade (#7604)
[main] Update dependencies from dotnet/arcade (#7604)
[main] Update dependencies from dotnet/arcadepull/7612/head
![42748379+dotnet-maestro[bot]@users.noreply.github.com](/img/avatar_default.png)
committed by
GitHub

No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 117 additions and 52 deletions
-
24eng/Version.Details.xml
-
6eng/Versions.props
-
18eng/common/cross/build-rootfs.sh
-
31eng/common/generate-locproject.ps1
-
2eng/common/sdk-task.ps1
-
37eng/common/sdl/sdl.ps1
-
37eng/common/templates/steps/execute-sdl.yml
-
4eng/common/tools.ps1
-
10global.json
@ -0,0 +1,37 @@ |
|||
|
|||
function Install-Gdn { |
|||
param( |
|||
[string]$Path, |
|||
|
|||
# If omitted, install the latest version of Guardian, otherwise install that specific version. |
|||
[string]$Version |
|||
) |
|||
|
|||
$ErrorActionPreference = 'Stop' |
|||
Set-StrictMode -Version 2.0 |
|||
$disableConfigureToolsetImport = $true |
|||
$global:LASTEXITCODE = 0 |
|||
|
|||
# `tools.ps1` checks $ci to perform some actions. Since the SDL |
|||
# scripts don't necessarily execute in the same agent that run the |
|||
# build.ps1/sh script this variable isn't automatically set. |
|||
$ci = $true |
|||
. $PSScriptRoot\..\tools.ps1 |
|||
|
|||
$argumentList = @("install", "Microsoft.Guardian.Cli", "-Source https://securitytools.pkgs.visualstudio.com/_packaging/Guardian/nuget/v3/index.json", "-OutputDirectory $Path", "-NonInteractive", "-NoCache") |
|||
|
|||
if ($Version) { |
|||
$argumentList += "-Version $Version" |
|||
} |
|||
|
|||
Start-Process nuget -Verbose -ArgumentList $argumentList -NoNewWindow -Wait |
|||
|
|||
$gdnCliPath = Get-ChildItem -Filter guardian.cmd -Recurse -Path $Path |
|||
|
|||
if (!$gdnCliPath) |
|||
{ |
|||
Write-PipelineTelemetryError -Category 'Sdl' -Message 'Failure installing Guardian' |
|||
} |
|||
|
|||
return $gdnCliPath.FullName |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue