@@ -76,18 +76,29 @@ stages:
7676 displayName: Dummy copy to signed
7777 condition: eq(variables['SkipSigning'], 'True')
7878
79+ - ${{ if ne(variables['SkipSigning'], 'True') }} :
80+ - template : Sbom.yml@ComplianceRepo
81+ parameters :
82+ BuildDropPath : ' $(Pipeline.Workspace)\signed'
83+ Build_Repository_Uri : https://github.com/PowerShell/Pager
84+ PackageName : Microsoft.PowerShell.Pager
85+ PackageVersion : $(Version)
86+
7987 - task : NuGetToolInstaller@1
8088 displayName : ' Install NuGet.exe'
8189
8290 - pwsh : |
8391 $packageRootPath = '$(System.ArtifactsDirectory)/Microsoft.PowerShell.Pager'
8492 $libPath = "$packageRootPath/lib/netstandard2.0"
8593 $lib461Path = "$packageRootPath/lib/net461"
94+ $sbomRoot = "$packageRootPath/_manifest"
8695 $null = New-Item -ItemType Directory -Path $libPath -Force
8796 $null = New-Item -ItemType Directory -Path $lib461Path -Force
97+ $null = New-Item -ItemType Directory -Path $sbomRoot -Force
8898 Copy-Item -Path "$env:PIPELINE_WORKSPACE\signed\netstandard2.0\*" -Destination $libPath -Verbose -Exclude '*.pdb'
8999 Copy-Item -Path "$env:PIPELINE_WORKSPACE\signed\net461\*" -Destination $lib461Path -Verbose -Exclude '*.pdb'
90100 Copy-Item -Path '$(Build.SourcesDirectory)/yaml/microsoft.powershell.pager.nuspec' -Destination $packageRootPath -Verbose
101+ Copy-Item -Path "$env:PIPELINE_WORKSPACE\signed\_manifest\*" -Destination $sbomRoot -Verbose -Recurse
91102 Push-Location $packageRootPath
92103 $version = "$env:VERSION"
93104 Write-Verbose -Verbose "Creating NuGet package with version $version"
0 commit comments