diff --git a/client/cmd/job/run_input.go b/client/cmd/job/run_input.go index bcbf0972ff..8520a18aa2 100644 --- a/client/cmd/job/run_input.go +++ b/client/cmd/job/run_input.go @@ -156,7 +156,7 @@ func (j *jobRunInputCommand) writeInstanceResponse(jobResponse *pb.JobRunInputRe func (j *jobRunInputCommand) writeJobResponseSecretToFile( jobResponse *pb.JobRunInputResponse, dirPath string, ) error { - secretsFileContent, keysWithUnsubstitutedValue := ConstructConfigEnvSourcingContent(jobResponse.Envs) + secretsFileContent, keysWithUnsubstitutedValue := ConstructConfigEnvSourcingContent(jobResponse.Secrets) j.keysWithUnsubstitutedValue = append(j.keysWithUnsubstitutedValue, keysWithUnsubstitutedValue...) filePath := filepath.Join(dirPath, typeSecretFileName)