Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9822745

Browse files
authored
fix: accept CODER_AGENT_TOKEN (#6765)
1 parent2bd6d29 commit9822745

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎cli/root.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ const (
6666
envNoVersionCheck="CODER_NO_VERSION_WARNING"
6767
envNoFeatureWarning="CODER_NO_FEATURE_WARNING"
6868
envSessionToken="CODER_SESSION_TOKEN"
69-
envURL="CODER_URL"
69+
//nolint:gosec
70+
envAgentToken="CODER_AGENT_TOKEN"
71+
envURL="CODER_URL"
7072
)
7173

7274
varerrUnauthenticated=xerrors.New(notLoggedInMessage)
@@ -280,6 +282,7 @@ func (r *RootCmd) Command(subcommands []*clibase.Cmd) (*clibase.Cmd, error) {
280282
},
281283
{
282284
Flag:varAgentToken,
285+
Env:envAgentToken,
283286
Description:"An agent authentication token.",
284287
Value:clibase.StringOf(&r.agentToken),
285288
Hidden:true,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp