Skip to content

Commit e0d8ddd

Browse files
committed
release build: Move compliance tasks before the signing step (#1714)
1 parent b416f98 commit e0d8ddd

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.vsts-ci/releaseBuild.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ jobs:
6161
Send-VstsCommand "vso[task.setvariable variable=Signed]$(Build.SourcesDirectory)\bin\Release\Signed"
6262
displayName: Bootstrap & Build
6363
64+
- template: templates/compliance.yml
65+
parameters:
66+
configuration: Release
67+
framework: net461
68+
6469
# Sign the module files
6570
- task: PkgESCodeSign@10
6671
displayName: 'CodeSign - module artifacts'
@@ -147,8 +152,3 @@ jobs:
147152
Write-Host "##vso[artifact.upload containerfolder=PSReadLine;artifactname=PSReadLine]$(PSReadLine)"
148153
Write-Host "##vso[artifact.upload containerfolder=NuGetPackage;artifactname=NuGetPackage]$(NuGetPackage)"
149154
displayName: 'Upload artifacts'
150-
151-
- template: templates/compliance.yml
152-
parameters:
153-
configuration: Release
154-
framework: net461

.vsts-ci/templates/compliance.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ steps:
7676
PoliCheckBreakOn: Severity2Above
7777

7878
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
79-
displayName: 'Component Detection'
79+
displayName: 'Component Governance Detection'
8080
inputs:
8181
sourceScanPath: '$(Build.SourcesDirectory)'
8282
snapshotForceEnabled: true
83+
scanType: 'Register'
84+
failOnAlert: true

0 commit comments

Comments
 (0)