You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are comparing the env var and bool true value, while only converting the latter to uppercase.
Console.WriteLine(IsEnabled(null));
Console.WriteLine(IsEnabled("true"));
Console.WriteLine(IsEnabled("TRUE"));staticobjectIsEnabled(stringsignVerifyEnvVariable){if(!string.IsNullOrEmpty(signVerifyEnvVariable)){if(signVerifyEnvVariable.Equals(bool.TrueString.ToUpperInvariant(), StringComparison.Ordinal)){returntrue;}// other values are unsupportedreturnfalse;}returnfalse;}
This would print:
False
False
True
which is incorrect and should be:
False
True
True
instead.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered:
@erdembayar the title of this issue does not match the implementation of the PR that closed it.
erdembayar
changed the title
Package Signing Verification Env variable value should be converted to upper case before for comparison
Make dotnet package verification env var value comparison case insensitive
Jun 22, 2022
NuGet Product Used
dotnet.exe
Product Version
n/a
Worked before?
No response
Impact
No response
Repro Steps & Context
You are comparing the env var and bool true value, while only converting the latter to uppercase.
This would print:
which is incorrect and should be:
instead.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: