Skip to content

Commit

Permalink
Merge conflicts fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DOMZE committed May 30, 2022
2 parents 92b4942 + 14d3267 commit 997c4f5
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ stages:
displayName: 'Build'
steps:
- checkout: self

- task: UseDotNet@2
displayName: '.NET Core 6.0.x'
inputs:
version: '6.0.x'
packageType: sdk

- task: DotNetCoreCLI@2
name: restoreVulnerabilitiesSolution
Expand All @@ -36,13 +42,29 @@ stages:
projects: $(Solution)
verbosityRestore: normal

- task: DotNetCoreCLI@2
- task: PowerShell@2
name: checkVulnerabilities
displayName: 'Vulnerabilities check'
inputs:
command: custom
custom: list
arguments: '$(Solution) package --vulnerable --include-transitive'
pwsh: true
targetType: inline
script: |
$output = dotnet list "$(Solution)" package --vulnerable
Write-Output $output
$errors = $output | Select-String '>'
if ($errors.Count -gt 0)
{
foreach ($err in $errors)
{
Write-Host "##vso[task.logissue type=error]Reference to vulnerable NuGet package $err"
}
exit 1
}
else
{
Write-Host "No vulnerable NuGet packages"
exit 0
}
- task: DotNetCoreCLI@2
displayName: Build solution
Expand Down

0 comments on commit 997c4f5

Please sign in to comment.