Skip to content

Commit

Permalink
feat: configure nuget audit
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Jan 4, 2025
1 parent 1712891 commit dd113e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<!-- Enable Transitive Package Pinning -->
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<RoslynVersion>4.12.0</RoslynVersion>
<!-- https://learn.microsoft.com/en-us/nuget/concepts/auditing-packages -->
<NuGetAudit>true</NuGetAudit>
<NuGetAuditMode>all</NuGetAuditMode>
<!-- https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1901-nu1904 -->
<NuGetAudit>true</NuGetAudit>
<!-- https://learn.microsoft.com/en-us/nuget/concepts/auditing-packages -->
<NuGetAuditMode>direct</NuGetAuditMode>
<!-- <NuGetAuditLevel>high</NuGetAuditLevel> -->
<WarningsAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="System.Text.Json" Version="8.0.5" />
Expand Down
1 change: 1 addition & 0 deletions src/ReferenceResolver/ReferenceResolver.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<!-- https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu5104 -->
<NoWarn>$(NoWarn);NU5104</NoWarn>
<IsAotCompatible>true</IsAotCompatible>
<NuGetAuditMode>direct</NuGetAuditMode>
</PropertyGroup>
<ItemGroup>
<None Include="README.md" Pack="true" Visible="false" PackagePath="" />
Expand Down

0 comments on commit dd113e7

Please sign in to comment.