mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(support): sanitize agent env (#12554)
This commit is contained in:
@@ -95,6 +95,9 @@ func (b WorkspaceBuildBuilder) WithAgent(mutations ...func([]*sdkproto.Agent) []
|
||||
Auth: &sdkproto.Agent_Token{
|
||||
Token: b.agentToken,
|
||||
},
|
||||
Env: map[string]string{
|
||||
"SECRET_TOKEN": "supersecret",
|
||||
},
|
||||
}}
|
||||
for _, m := range mutations {
|
||||
agents = m(agents)
|
||||
|
||||
Reference in New Issue
Block a user