Skip to content

Commit

Permalink
Merge pull request #565 from akunzai/nuget-audit-mode
Browse files Browse the repository at this point in the history
Enabling NuGet packages auditing
  • Loading branch information
akunzai authored Mar 26, 2024
2 parents d65725b + dc47b2a commit 4e3b3b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-own-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
- main
paths:
- 'samples/OwinSample/**'
- 'Directory.*.props'
pull_request:
paths:
- 'samples/OwinSample/**'
- 'Directory.*.props'

permissions: read-all

Expand Down
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<LangVersion>latest</LangVersion>
<!-- https://aka.ms/vs-build-acceleration -->
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
<!-- https://learn.microsoft.com/nuget/concepts/auditing-packages -->
<NuGetAuditMode>all</NuGetAuditMode>
<NuGetAuditLevel>moderate</NuGetAuditLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup Condition="$(TargetFramework.StartsWith('net4')) AND '$(OS)' != 'Windows_NT'">
Expand Down

0 comments on commit 4e3b3b0

Please sign in to comment.