fix(support): sanitize agent env (#12554)

This commit is contained in:
Cian Johnston
2024-03-12 15:23:11 +00:00
committed by GitHub
parent 597694fbdd
commit 47cb584052
3 changed files with 31 additions and 0 deletions
+3
View File
@@ -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)