fix(support): also sanitize agent environment (#12615)

This commit is contained in:
Cian Johnston
2024-03-15 20:19:35 +00:00
committed by GitHub
parent 6f0ba5bfe7
commit 9ff0bafcee
2 changed files with 10 additions and 3 deletions
+1
View File
@@ -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
})