File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,15 @@ steps:
28
28
archiveFile : PowerShellEditorServices-Build.zip
29
29
verbose : true
30
30
31
+ - task : ArchiveFiles@2
32
+ displayName : Zip sources for SBOM
33
+ inputs :
34
+ rootFolderOrFile : src
35
+ includeRootFolder : false
36
+ archiveType : zip
37
+ archiveFile : PowerShellEditorServices-Sources.zip
38
+ verbose : true
39
+
31
40
- publish : PowerShellEditorServices-Build.zip
32
41
artifact : PowerShellEditorServices-Build-$(System.JobId)
33
42
displayName : Publish unsigned pipeline artifacts
Original file line number Diff line number Diff line change @@ -48,6 +48,23 @@ steps:
48
48
**/Serilog*.dll
49
49
**/UnixConsoleEcho.dll
50
50
51
+ # The SBOM generation requires our original sources with the `dotnet restore`
52
+ # produced `project.assets.json` files.
53
+ - task : ExtractFiles@1
54
+ displayName : Extract source artifacts
55
+ inputs :
56
+ archiveFilePatterns : $(Pipeline.Workspace)/PowerShellEditorServices-Build-*/PowerShellEditorServices-Sources.zip
57
+ destinationFolder : $(Pipeline.Workspace)/Sources
58
+ cleanDestinationFolder : true
59
+
60
+ - template : Sbom.yml@ComplianceRepo
61
+ parameters :
62
+ BuildDropPath : $(Pipeline.Workspace)/ThirdPartySigned
63
+ Build_Repository_Uri : https://github.com/PowerShell/PowerShellEditorServices.git
64
+ packageName : PowerShellEditorServices
65
+ packageVersion : $(System.JobId)
66
+ sourceScanPath : $(Pipeline.Workspace)/Sources
67
+
51
68
- task : ArchiveFiles@2
52
69
displayName : Zip signed artifacts
53
70
inputs :
You can’t perform that action at this time.
0 commit comments