Configuring NuGet
Point NuGet at the Seal Artifact Server using a NuGet.config package source.
NuGet configures package sources through NuGet.config files. The Seal Artifact Server is registered as a package source, with credentials supplied either in NuGet.config directly or through a credential provider.
Configuration
Create or edit NuGet.config in the project root (or the solution root):
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="seal" value="https://nuget.sealsecurity.io/v3/index.json" />
</packageSources>
<packageSourceCredentials>
<seal>
<add key="Username" value="<project-id>" />
<add key="ClearTextPassword" value="<token>" />
</seal>
</packageSourceCredentials>
</configuration>Replace <project-id> with the Seal Project ID and <token> with your production token.
ClearTextPassword stores the token literally; for CI, prefer passing credentials at runtime through nuget sources update or an environment-based credential provider rather than committing them.
Verify
The output should include seal pointing at https://nuget.sealsecurity.io/. A clean dotnet restore should then resolve packages from that source.
Related
Editing dependency files manually: pinning sealed versions in
*.csproj.
Last updated