-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathnuget.config
More file actions
19 lines (19 loc) · 848 Bytes
/
Copy pathnuget.config
File metadata and controls
19 lines (19 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="utf-8"?>
<!--
Supply-chain hardening (security audit LOW-2): pin the ONLY package source to nuget.org and
map every package to it. This closes the dependency-substitution / dependency-confusion gap so
a restore can never silently pull a package (e.g. the tray dependency Hardcodet.NotifyIcon.Wpf)
from a machine-configured or injected feed. Combined with the committed packages.lock.json
(contentHash) + CI locked-mode restores, package identity is now pinned by both source and content.
-->
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
<packageSourceMapping>
<packageSource key="nuget.org">
<package pattern="*" />
</packageSource>
</packageSourceMapping>
</configuration>