Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions Sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ steps:
# This will break signing, but it is currently not enabled.
- pwsh: |
$manifestPath = Join-Path '${{ parameters.BuildDropPath }}' -ChildPath '_manifest\manifest.json'
Write-Verbose "manifestPath: $manifestPath" -verbose
$manifest = Get-Content $manifestPath | ConvertFrom-Json
Write-Verbose "oldRepo: $($manifest.Repo)" -verbose
$manifest.Repo = '${{ parameters.Build_Repository_Uri}}'
Write-Verbose "newRepo: $($manifest.Repo)" -verbose
$manifest | convertto-json -Compress | Out-File -FilePath $manifestPath -Force
if (Test-Path $manifestPath) {
Write-Verbose "manifestPath: $manifestPath" -verbose
$manifest = Get-Content $manifestPath | ConvertFrom-Json
Write-Verbose "oldRepo: $($manifest.Repo)" -verbose
$manifest.Repo = '${{ parameters.Build_Repository_Uri}}'
Write-Verbose "newRepo: $($manifest.Repo)" -verbose
$manifest | convertto-json -Compress | Out-File -FilePath $manifestPath -Force
} else { Write-Verbose "cloudbuild manifest doesn't exist" -verbose" }
displayName: '${{ parameters.displayName }} - Fix repo'