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
Token is no longer supported
(#4312)
`darc` will
- stop reading/storing the BAR token from the local settings
- stop using it if it's supplied as an argument (but not fail yet)
- warn if it's supplied
- stop giving a warning when the user has not called `darc authenticate`
yet
new("Create new GitHub personal access tokens at https://github.com/settings/tokens (no scopes needed but needs SSO enabled on the PAT)",isComment:true),
HelpText="Token used to authenticate to BAR. If it or the federated token are omitted, auth falls back to Azure CLI or an interactive browser login flow.")]
31
+
HelpText="[DEPRECATED] Token used to authenticate to BAR. Please use Azure CLI or an interactive browser login flow.")]
32
32
[RedactFromLogging]
33
-
publicstringBuildAssetRegistryToken{get;set;}
33
+
publicstringBuildAssetRegistryToken
34
+
{
35
+
get=>null;
36
+
set
37
+
{
38
+
if(!string.IsNullOrEmpty(value))
39
+
{
40
+
Console.WriteLine("The --password option is deprecated. Please use Azure CLI or an interactive browser login flow.");
41
+
}
42
+
}
43
+
}
34
44
35
45
[Option("github-pat",HelpText="Token used to authenticate GitHub.")]
36
46
[RedactFromLogging]
@@ -106,7 +116,6 @@ public void InitializeFromSettings(ILogger logger)
0 commit comments