mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix(support): also sanitize agent environment (#12615)
This commit is contained in:
@@ -298,6 +298,7 @@ func AgentInfo(ctx context.Context, client *codersdk.Client, log slog.Logger, ag
|
||||
if err != nil {
|
||||
return xerrors.Errorf("fetch workspace agent: %w", err)
|
||||
}
|
||||
sanitizeEnv(agt.EnvironmentVariables)
|
||||
a.Agent = &agt
|
||||
return nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user