Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 8626f91

Browse files
authored
Merge pull request #23 from SteveL-MSFT/sbom
Add SBOM
2 parents f713a58 + 256da41 commit 8626f91

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

yaml/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ trigger:
44
batch: true
55
branches:
66
include:
7-
- master
7+
- main
88
- release*
99
pr:
1010
branches:
1111
include:
12-
- master
12+
- main
1313
- release*
1414

1515
resources:
@@ -21,12 +21,12 @@ resources:
2121

2222
stages:
2323
- stage: Build
24-
pool:
25-
vmImage: windows-latest
2624
displayName: Build Microsoft.PowerShell.TextUtility
2725
jobs:
2826
- job: Build
2927
displayName: Build
28+
pool:
29+
vmImage: windows-latest
3030
steps:
3131
- pwsh: |
3232
./build.ps1 -Clean
@@ -60,8 +60,8 @@ stages:
6060
dependsOn: Build
6161
jobs:
6262
- job: Compliance_Job
63-
pool:
64-
vmImage: windows-latest
63+
pool:
64+
vmImage: windows-latest
6565
steps:
6666
- checkout: self
6767
- checkout: ComplianceRepo

yaml/releaseBuild.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ trigger:
1212
batch: true
1313
branches:
1414
include:
15-
- master
15+
- main
1616
paths:
1717
exclude:
1818
- /.dependabot/*
@@ -46,6 +46,8 @@ stages:
4646
displayName: Release Build
4747
pool:
4848
name: PowerShell1ES
49+
demands:
50+
- ImageOverride -equals PSMMS2019-Secure
4951
steps:
5052
- pwsh: |
5153
# build agents get reused so we make sure to remove the old archive
@@ -61,8 +63,9 @@ stages:
6163
- group: ESRP
6264
displayName: Signing Build
6365
dependsOn: 'ReleaseBuild'
64-
pool:
65-
name: PowerShell1ES
66+
pool: PowerShell1ES
67+
demands:
68+
- ImageOverride -equals PSMMS2019-Secure
6669
steps:
6770
- powershell: |
6871
Get-ChildItem -Path env:
@@ -92,6 +95,12 @@ stages:
9295
# https://github.com/isaacs/minimatch#features
9396
useMinimatch: false
9497

98+
- ${{ if ne(variables.SkipSigning, 'True') }}:
99+
- template: Sbom.yml@ComplianceRepo
100+
parameters:
101+
BuildDropPath: $(Build.SourcesDirectory)/Microsoft.PowerShell.TextUtility
102+
Build_Repository_Uri: 'https://github.com/powershell/textutility'
103+
95104
- pwsh: |
96105
New-Item -Path $(Build.SourcesDirectory)/SignedZip -ItemType Directory -ErrorAction Ignore
97106
Compress-Archive -Path $(Build.SourcesDirectory)/Microsoft.PowerShell.TextUtility -DestinationPath $(Build.SourcesDirectory)/SignedZip/Microsoft.PowerShell.TextUtility.zip -Force
@@ -115,6 +124,8 @@ stages:
115124
- job: Compliance_Job
116125
pool:
117126
name: PowerShell1ES
127+
demands:
128+
- ImageOverride -equals PSMMS2019-Secure
118129
steps:
119130
- checkout: self
120131
- checkout: ComplianceRepo

0 commit comments

Comments
 (0)