DotUtils.BuildChecks
0.0.5-beta
See the version list below for details.
dotnet add package DotUtils.BuildChecks --version 0.0.5-beta
NuGet\Install-Package DotUtils.BuildChecks -Version 0.0.5-beta
<PackageReference Include="DotUtils.BuildChecks" Version="0.0.5-beta"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="DotUtils.BuildChecks" Version="0.0.5-beta" />
<PackageReference Include="DotUtils.BuildChecks"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add DotUtils.BuildChecks --version 0.0.5-beta
#r "nuget: DotUtils.BuildChecks, 0.0.5-beta"
#:package DotUtils.BuildChecks@0.0.5-beta
#addin nuget:?package=DotUtils.BuildChecks&version=0.0.5-beta&prerelease
#tool nuget:?package=DotUtils.BuildChecks&version=0.0.5-beta&prerelease
DotUtils Custom BuildChecks
UntrustedLocationCheck
It is strongly recommended not to place MSBuild project files into locations where other logic have write access to the parent folders. That is because MSBuild (more specifically SDK common targets) hierarchically traverses folder structure for auto-importable msbuild logic. This Check flags attempts to build from Downloads folder.
EnvironmentVariableSecretsCheck
The UsedEnvironmentVariablesCheck is a custom MSBuild check that detects sensitive data and secrets in environment variables used during the build process. This check helps identify potential security risks by scanning environment variable values for common secrets, explicit secrets, and usernames. The check automatically monitors environment variable access during the build process.
When a secret is detected, it generates a build warning with the following information:
- Secret type (SubKind)
- Secret value (truncated based on verbose settings)
- Location in build files (file, line, column)
Example Output
warning DU0202: CommonSecret with value: 'APIKey123***' at project.props(12,5)
Example Output
Copywarning DU0202: CommonSecret with value: 'APIKey123***' at project.props(12,5)
warning DU0202: Username with value: 'admin@comp***' at Directory.Build.props(25,10)
UnexpectedNugetBuildLogic
TBD
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.6-beta | 122 | 11/5/2024 |
| 0.0.5-beta | 97 | 11/4/2024 |
| 0.0.4-beta | 99 | 10/22/2024 |
| 0.0.3-beta | 94 | 10/22/2024 |
| 0.0.2-beta | 157 | 10/18/2024 |