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

Commit 713c01d

Browse files
committed
Run Component Detection after build with correct options
1 parent 7843094 commit 713c01d

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

tools/ci/templates/jobs-cslib-release-build.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ parameters:
1414
displayName: 'Clean build'
1515
type: boolean
1616
default: true
17-
17+
1818
jobs:
1919

2020
# Compile Microsoft.MixedReality.WebRTC.dll
@@ -34,6 +34,14 @@ jobs:
3434
arguments: '-f netstandard2.0 --no-incremental -c Release'
3535
workingDirectory: 'libs/Microsoft.MixedReality.WebRTC'
3636

37+
# Run component detection
38+
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
39+
displayName: 'Component Detection'
40+
inputs:
41+
sourceScanPath: '$(Build.SourcesDirectory)'
42+
scanType: 'Register'
43+
failOnAlert: true
44+
3745
# # Download mrwebrtc.dll (Win32-x64-buildConfig) for testing
3846
# - ${{ if eq(parameters.withTesting, 'true') }}:
3947
# - task: DownloadPipelineArtifact@2

tools/ci/templates/jobs-cslib-release-pack.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ jobs:
127127
displayName: 'Component Detection before signing'
128128
inputs:
129129
sourceScanPath: '$(Build.BinariesDirectory)'
130+
scanType: 'Register'
131+
failOnAlert: true
130132

131133
# Sign package content
132134
- task: DownloadSecureFile@1

tools/ci/templates/jobs-mrwebrtc-release-build.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
submodules: recursive
8686
fetchDepth: '50'
8787
clean: ${{parameters.clean}}
88-
88+
8989
# Generate custom .vcxproj to skip any NuGet package related to webrtc.lib, since this pipeline
9090
# is recompiling libwebrtc from sources. This saves both build time and disk space.
9191
- task: PowerShell@2
@@ -142,12 +142,6 @@ jobs:
142142
workingDirectory: 'external/webrtc-uwp-sdk/webrtc/xplatform'
143143
displayName: 'Clean-up unused files'
144144
145-
# Run component detection
146-
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
147-
displayName: 'Component Detection'
148-
inputs:
149-
sourceScanPath: '$(Build.SourcesDirectory)'
150-
151145
# Build webrtc.lib
152146
- task: PythonScript@0
153147
displayName: 'Build webrtc.lib'
@@ -181,6 +175,14 @@ jobs:
181175
configuration: '${{parameters.buildConfig}}'
182176
timeoutInMinutes: 20
183177

178+
# Run component detection
179+
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
180+
displayName: 'Component Detection'
181+
inputs:
182+
sourceScanPath: '$(Build.SourcesDirectory)'
183+
scanType: 'Register'
184+
failOnAlert: true
185+
184186
# Stage artifacts
185187
- task: CopyFiles@2
186188
displayName: 'Stage mrwebrtc artifacts'

tools/ci/templates/jobs-mrwebrtc-release-pack.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ jobs:
178178
displayName: 'Component Detection before signing'
179179
inputs:
180180
sourceScanPath: '$(Build.BinariesDirectory)'
181+
scanType: 'Register'
182+
failOnAlert: true
181183

182184
# Sign package content
183185
- task: DownloadSecureFile@1

tools/ci/templates/jobs-unity-package.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ jobs:
121121
displayName: 'Component Detection before signing'
122122
inputs:
123123
sourceScanPath: 'libs/unity'
124+
scanType: 'Register'
125+
failOnAlert: true
124126

125127
# Sign library package content
126128
- task: DownloadSecureFile@1

0 commit comments

Comments
 (0)