Skip to content

Commit 2053ed9

Browse files
committed
Update the release build to satisfy the compliance requirement (#1726)
1 parent e0d8ddd commit 2053ed9

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

.vsts-ci/releaseBuild.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
pool: Package ES Lab A
2121

2222
# APIScan can take a long time
23-
timeoutInMinutes: 200
23+
timeoutInMinutes: 240
2424

2525
steps:
2626

@@ -61,10 +61,13 @@ 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
64+
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
65+
displayName: 'Component Governance Detection'
66+
inputs:
67+
sourceScanPath: '$(Build.SourcesDirectory)'
68+
snapshotForceEnabled: true
69+
scanType: 'Register'
70+
failOnAlert: true
6871

6972
# Sign the module files
7073
- task: PkgESCodeSign@10
@@ -152,3 +155,8 @@ jobs:
152155
Write-Host "##vso[artifact.upload containerfolder=PSReadLine;artifactname=PSReadLine]$(PSReadLine)"
153156
Write-Host "##vso[artifact.upload containerfolder=NuGetPackage;artifactname=NuGetPackage]$(NuGetPackage)"
154157
displayName: 'Upload artifacts'
158+
159+
- template: templates/compliance.yml
160+
parameters:
161+
configuration: Release
162+
framework: net461

.vsts-ci/templates/compliance.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,3 @@ steps:
7474
CredScan: true
7575
PoliCheck: true
7676
PoliCheckBreakOn: Severity2Above
77-
78-
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
79-
displayName: 'Component Governance Detection'
80-
inputs:
81-
sourceScanPath: '$(Build.SourcesDirectory)'
82-
snapshotForceEnabled: true
83-
scanType: 'Register'
84-
failOnAlert: true

MockPSConsole/MockPSConsole.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<PackageReference Include="System.Xml.XDocument" version="4.3.0" />
1818
<PackageReference Include="System.Data.DataSetExtensions" version="4.5.0" />
1919
<PackageReference Include="Microsoft.CSharp" version="4.5.0" />
20-
<PackageReference Include="PowerShellStandard.Library" version="5.1.0-*" Condition="'$(TargetFramework)' == 'net461'" />
20+
<PackageReference Include="PowerShellStandard.Library" version="5.1.0" Condition="'$(TargetFramework)' == 'net461'" />
2121
<PackageReference Include="Microsoft.PowerShell.SDK" version="7.0.3" Condition="'$(TargetFramework)' == 'netcoreapp3.1'" />
2222
</ItemGroup>
2323

PSReadLine/PSReadLine.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
</PropertyGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Include="PowerShellStandard.Library" version="5.1.0-*" />
21-
<PackageReference Include="Microsoft.CSharp" version="4.5.0-*" />
20+
<PackageReference Include="PowerShellStandard.Library" version="5.1.0" />
21+
<PackageReference Include="Microsoft.CSharp" version="4.5.0" />
2222
</ItemGroup>
2323
<ItemGroup>
2424
<None Include="PSReadLine.psd1" CopyToOutputDirectory="PreserveNewest" />

test/PSReadLine.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<PackageReference Include="Microsoft.CSharp" version="4.5.0" />
2424
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
2525
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.0.3" Condition="'$(TargetFramework)' == 'netcoreapp3.1'" />
26-
<PackageReference Include="PowerShellStandard.Library" version="5.1.0-*" Condition="'$(TargetFramework)' == 'net461'" />
26+
<PackageReference Include="PowerShellStandard.Library" version="5.1.0" Condition="'$(TargetFramework)' == 'net461'" />
2727
</ItemGroup>
2828

2929
<ItemGroup>

0 commit comments

Comments
 (0)