Skip to content

Commit 4cf4544

Browse files
committed
Activated NuGet audit
Activated NuGet audit as documented here by adding a global Directory.Build.props: https://devblogs.microsoft.com/nuget/nugetaudit-2-0-elevating-security-and-trust-in-package-management/. The audit breaks the build on high and critical severity vulnerabilities in direct and transitive dependencies. Related issue: #544
1 parent 11415c6 commit 4cf4544

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Directory.Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
<PropertyGroup>
3+
<NuGetAuditMode>all</NuGetAuditMode>
4+
<NuGetAuditLevel>high</NuGetAuditLevel>
5+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6+
</PropertyGroup>
7+
</Project>

serilog-sinks-mssqlserver.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
2424
.editorconfig = .editorconfig
2525
Build.ps1 = Build.ps1
2626
CHANGES.md = CHANGES.md
27+
Directory.Build.props = Directory.Build.props
2728
Directory.Packages.props = Directory.Packages.props
2829
.github\ISSUE_TEMPLATE.md = .github\ISSUE_TEMPLATE.md
2930
.github\workflows\pr-analysis-codeql.yml = .github\workflows\pr-analysis-codeql.yml

0 commit comments

Comments
 (0)