fix: agent secret masking

This commit is contained in:
engigu
2026-03-27 17:33:37 +08:00
parent f58ae241fb
commit 18bc3ec6c8
4 changed files with 22 additions and 7 deletions
+5
View File
@@ -61,6 +61,7 @@ type AgentTask struct {
Envs string `json:"envs"`
Languages []map[string]string `json:"languages"`
RandomRange int `json:"random_range"`
Secrets []string `json:"secrets"`
Enabled bool `json:"enabled"`
}
@@ -84,6 +85,10 @@ func (t AgentTask) GetRandomRange() int {
return t.RandomRange
}
func (t AgentTask) GetSecrets() []string {
return t.Secrets
}
// AgentTaskResult Agent 上报的任务执行结果
type AgentTaskResult struct {
TaskID string `json:"task_id"`